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


Performing analysis on: 4FGL_J0721.9+7120_daily_bin739
RA = 110.488, Dec = 71.3405
tmin = 430876801, tmax = 431136001
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='292738', job_status='RUN', time_executed='2021-08-27 04:13:20.396162', time_epoch_executed='1630062800.4' WHERE source_name='4FGL J0721.9+7120' and cadence='daily' and bin_id='739'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/292738

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/292738/ft1_4FGL_J0721.9+7120_daily_bin739.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/292738/ft2_4FGL_J0721.9+7120_daily_bin739.fits


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

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

Done.
real 6.83
user 5.22
sys 1.59

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/292738/ft1_filtered_4FGL_J0721.9+7120_daily_bin739.fits" evtable="EVENTS" scfile=/scratch/kocevski/292738/ft2_4FGL_J0721.9+7120_daily_bin739.fits sctable="SC_DATA" outfile=/scratch/kocevski/292738/ltcube_430876801_431136001_4FGL_J0721.9+7120_daily_bin739.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/292738/ft2_4FGL_J0721.9+7120_daily_bin739.fits
.....................!
real 13.82
user 11.91
sys 1.87

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/292738/ft1_filtered_4FGL_J0721.9+7120_daily_bin739.fits evtable="EVENTS" scfile=/scratch/kocevski/292738/ft2_4FGL_J0721.9+7120_daily_bin739.fits sctable="SC_DATA" expcube=/scratch/kocevski/292738/ltcube_430876801_431136001_4FGL_J0721.9+7120_daily_bin739.fits outfile=/scratch/kocevski/292738/expmap_430876801_431136001_4FGL_J0721.9+7120_daily_bin739.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/292738/ltcube_430876801_431136001_4FGL_J0721.9+7120_daily_bin739.fits
.....................!
real 192.13
user 185.28
sys 6.43

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/292738/ft1_filtered_4FGL_J0721.9+7120_daily_bin739.fits scfile=/scratch/kocevski/292738/ft2_4FGL_J0721.9+7120_daily_bin739.fits outfile=/scratch/kocevski/292738/cmap_430876801_431136001_4FGL_J0721.9+7120_daily_bin739.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.76
user 0.36
sys 1.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/292738/ft1_filtered_4FGL_J0721.9+7120_daily_bin739.fits scfile=/scratch/kocevski/292738/ft2_4FGL_J0721.9+7120_daily_bin739.fits outfile=/scratch/kocevski/292738/cmap_HighResolution_430876801_431136001_4FGL_J0721.9+7120_daily_bin739.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 1.92
user 0.38
sys 1.49

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.587       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.6542       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11626E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.8955       1.0000         .10000E-03   10000.    
     8 'Prefactor '    91.258       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .12436E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    30.735       1.0000         .10000E-03   10000.    
    13 'norm      '    3.2609       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.2317       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.9447       1.0000         .10000E-03   10000.    
    16 'norm      '    1.5618       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.938       1.0000         .10000E-03   10000.    
    18 'Prefactor '    45.048       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .66333       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1332       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7476.119     FROM MIGRAD    STATUS=CONVERGED    777 CALLS     2869 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.592        32.753        .82477E-04    .12406E-05
   2  Prefactor     .10000E-03    11.871        .18142E-02** at limit **
   3  Prefactor     .10000E-03    10.065        .18142E-02** at limit **
   4  Prefactor     6.6560        26.510        .15556E-03    .16078E-05
   5  Prefactor     .10000E-03    26.425        .13111    ** at limit **
   6  norm          .10000E-03    6.9815        .18142E-02** at limit **
   7  norm          2.8955        .79686        .38892E-04   -.51740E-04
   8  Prefactor     91.437        152.19        .21033E-03   -.81079E-06
   9  Prefactor     .10000E-03    11.361        .18142E-02** at limit **
  10  norm          .10000E-03    61.001        .18142E-02** at limit **
  11  Prefactor     .10000E-03    24.305        .18142E-02** at limit **
  12  Prefactor     30.725        44.984        .72272E-04   -.16045E-04
  13  norm          3.2609        3.1101        .13852E-03   -.32009E-04
  14  Prefactor     4.2322        4.5349        .18269E-03   -.26261E-04
  15  Prefactor     2.9449        1.7916        .85472E-04    .23144E-04
  16  norm          1.5621        2.6298        .15497E-03    .27070E-04
  17  Prefactor     14.937        32.107        .10363E-03   -.87765E-06
  18  Prefactor     45.046        29.079        .59735E-04   -.25883E-04
  19  Prefactor     .10000E-03    10.484        .18142E-02** at limit **
  20  Normalizat    .66334        .22290        .35940E-03   -.12242E-04
  21  Prefactor     1.1332        .12348        .17231E-03   -.12267E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.5918
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.65604
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.89546
  Prefactor  = 91.4367
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.7251
  norm       = 3.26089
  Prefactor  = 4.23223
  Prefactor  = 2.94485
  norm       = 1.56213
  Prefactor  = 14.9366
  Prefactor  = 45.0456
  Prefactor  = 0.0001
  Normalizat = 0.66334
  Prefactor  = 1.13319
 **********
 **   18 **HESSE 
 **********

 FCN=   7476.119     FROM HESSE     STATUS=OK           305 CALLS     3174 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.592        32.757        .32991E-05   -1.4736    
   2  Prefactor     .10000E-03    11.871        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.067        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.6560        26.504        .62224E-05   -1.5192    
   5  Prefactor     .10000E-03    26.222        .13187       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.9816        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.8955        .79685        .15557E-05   -1.5368    
   8  Prefactor     91.437        152.15        .84130E-05   -1.3793    
   9  Prefactor     .10000E-03    11.362        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    61.026        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    24.310        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     30.725        44.965        .28909E-05   -1.4599    
  13  norm          3.2609        3.1098        .55407E-05   -1.5347    
  14  Prefactor     4.2322        4.5346        .73075E-05   -1.5296    
  15  Prefactor     2.9449        1.7914        .34189E-05   -1.5365    
  16  norm          1.5621        2.6283        .61988E-05   -1.5458    
  17  Prefactor     14.937        32.104        .41452E-05   -1.4935    
  18  Prefactor     45.046        29.065        .23894E-05   -1.4365    
  19  Prefactor     .10000E-03    10.485        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .66334        .22297        .14376E-04   -1.0536    
  21  Prefactor     1.1332        .12354        .34461E-04   -.88413    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36096e-11
Minuit parameter uncertainties:
  1  32.7815
  2  7.06343e-06
  3  4.41058e-06
  4  26.5514
  5  6.20566e-05
  6  4.13617e-06
  7  0.796852
  8  152.806
  9  1.12998e-05
  10  0.000117505
  11  1.28878e-05
  12  45.0146
  13  3.10998
  14  4.53496
  15  1.79147
  16  2.62854
  17  32.1407
  18  29.0741
  19  1.34947e-05
  20  0.223273
  21  0.123571
Done.

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

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  2.895e+00  7.969e-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.133e+00  1.236e-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.633e-01  2.233e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 47.14
Ra Dec: 110.488 71.341
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 1.38e-07 +/- 3.80e-08
Energy Flux (Fixed Index): 8.20e-05 +/- 2.26e-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) = 7476.03683851
delta logL = 0.0818967100604

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7476.03027877
delta logL = 0.088456454574

Fit tolerance = 1e-08

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

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

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9579        1.0603        .59031E-02   -.20277E-04
   2  alpha         1.8877        .28582        .17841       -.73047E-05
   3  Normalizat    .67430        .17939        .80563E-01    .25322E-04
   4  Prefactor     1.1295        .10936        .36559E-01    .76397E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.95791
  alpha      = 1.88771
  Normalizat = 0.674302
  Prefactor  = 1.12947
 **********
 **   18 **HESSE 
 **********

 FCN=   7476.030     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .30E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9579        .82607        .39808E-04   -1.5364    
   2  alpha         1.8877        .23146        .75739E-02   -.24743    
   3  Normalizat    .67430        .19711        .35673E-03   -1.0492    
   4  Prefactor     1.1295        .12043        .17256E-03   -.88530    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0432e-12
Minuit parameter uncertainties:
  1  0.826075
  2  0.231815
  3  0.197319
  4  0.12046
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/292738': 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) = 7476.03027786
delta logL = 0.0884573662097

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  2.958e+00  8.261e-01  1.000e-04  1.000e+04 ( 1.000e-11)
257        alpha:  1.888e+00  2.318e-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.129e+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:  6.743e-01  1.973e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 47.21
Ra Dec: 110.488 71.341
Photon Index (Free Index): 1.89 +/- 0.23
Photon Flux (Free Index): 1.29e-07 +/- 4.18e-08
Energy Flux (Free Index): 9.35e-05 +/- 4.02e-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/292738/cmap_HighResolution_430876801_431136001_4FGL_J0721.9+7120_daily_bin739.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.38e-07', energy_flux2='9.35e-05', photon_flux_error='3.80e-08', dlogl='8.85e-02', energy_flux='8.20e-05', photon_flux2='1.29e-07', job_status='DONE', time_completed='2021-08-27 04:26:59.245112', photon_index_error2='0.23', photon_index2='1.89', ts='47.14', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='4.02e-05', EG='0.66', time_epoch_completed='1630063619.25', return_code='0', job_id='292738', GAL2='1.13', EG2='0.67', return_code2='0', energy_flux_error='2.26e-05', photon_flux_error2='4.18e-08', ts2='47.21', photon_index='1.99' WHERE bin_id='739' AND source_name='4FGL J0721.9+7120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 04:26:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0139>
Subject: Job 292738: <4FGL_J0721.9+7120_daily_bin739> in cluster <slac> Done

Job <4FGL_J0721.9+7120_daily_bin739> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Aug 27 04:10:38 2021
Job was executed on host(s) <bullet0139>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 04:10:44 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:10:44 2021
Terminated at Fri Aug 27 04:27:00 2021
Results reported at Fri Aug 27 04:27:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0721.9+7120_daily_bin739 110.488 71.3405 430876801 431136001 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 :                                   838.30 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             305.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            982 sec.

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

