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


Performing analysis on: 4FGL_J0721.9+7120_daily_bin1461
RA = 110.488, Dec = 71.3405
tmin = 618019201, tmax = 618278401
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='299671', job_status='RUN', time_executed='2021-08-27 04:35:57.569868', time_epoch_executed='1630064157.57' WHERE source_name='4FGL J0721.9+7120' and cadence='daily' and bin_id='1461'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/299671

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/299671/ft1_4FGL_J0721.9+7120_daily_bin1461.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/299671/ft2_4FGL_J0721.9+7120_daily_bin1461.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/299671/ft1_4FGL_J0721.9+7120_daily_bin1461.fits outfile=/scratch/kocevski/299671/ft1_filteredMKT_4FGL_J0721.9+7120_daily_bin1461.fits ra=110.488 dec=71.3405 rad=12.0 tmin=618019201.0 tmax=618278401.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.23
user 4.98
sys 1.12

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/299671/ft2_4FGL_J0721.9+7120_daily_bin1461.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/299671/ft1_filteredMKT_4FGL_J0721.9+7120_daily_bin1461.fits evtable="EVENTS" outfile="/scratch/kocevski/299671/ft1_filtered_4FGL_J0721.9+7120_daily_bin1461.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.39
user 0.32
sys 1.03

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/299671/ft1_filtered_4FGL_J0721.9+7120_daily_bin1461.fits" evtable="EVENTS" scfile=/scratch/kocevski/299671/ft2_4FGL_J0721.9+7120_daily_bin1461.fits sctable="SC_DATA" outfile=/scratch/kocevski/299671/ltcube_618019201_618278401_4FGL_J0721.9+7120_daily_bin1461.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/299671/ft2_4FGL_J0721.9+7120_daily_bin1461.fits
.....................!
real 12.76
user 11.32
sys 1.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/299671/ft1_filtered_4FGL_J0721.9+7120_daily_bin1461.fits evtable="EVENTS" scfile=/scratch/kocevski/299671/ft2_4FGL_J0721.9+7120_daily_bin1461.fits sctable="SC_DATA" expcube=/scratch/kocevski/299671/ltcube_618019201_618278401_4FGL_J0721.9+7120_daily_bin1461.fits outfile=/scratch/kocevski/299671/expmap_618019201_618278401_4FGL_J0721.9+7120_daily_bin1461.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/299671/ltcube_618019201_618278401_4FGL_J0721.9+7120_daily_bin1461.fits
.....................!
real 195.37
user 187.54
sys 5.45

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/299671/ft1_filtered_4FGL_J0721.9+7120_daily_bin1461.fits scfile=/scratch/kocevski/299671/ft2_4FGL_J0721.9+7120_daily_bin1461.fits outfile=/scratch/kocevski/299671/cmap_618019201_618278401_4FGL_J0721.9+7120_daily_bin1461.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.39
user 0.38
sys 0.99

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/299671/ft1_filtered_4FGL_J0721.9+7120_daily_bin1461.fits scfile=/scratch/kocevski/299671/ft2_4FGL_J0721.9+7120_daily_bin1461.fits outfile=/scratch/kocevski/299671/cmap_HighResolution_618019201_618278401_4FGL_J0721.9+7120_daily_bin1461.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.40
user 0.39
sys 1.00

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.193       1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.848       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.660       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.9643       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.421       1.0000         .10000E-03   10000.    
    13 'norm      '    .13486E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.1048       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10215E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    29.509       1.0000         .10000E-03   10000.    
    18 'Prefactor '    44.102       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.8807       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .92467       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1333       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=   10831.15     FROM MIGRAD    STATUS=CONVERGED    457 CALLS     2259 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.190        22.859       -.24913E-05    .11698E-03
   2  Prefactor     18.847        31.234       -.32601E-06    .17130E-04
   3  Prefactor     .10000E-03    7.8952        .50981E-06** at limit **
   4  Prefactor     35.663        23.545        .13011E-05   -.75098E-04
   5  Prefactor     .10000E-03    21.986       -.51221E-06** at limit **
   6  norm          .10000E-03    13.853        .21605E-07** at limit **
   7  norm          2.9644        .70059       -.21540E-07    .74346E-03
   8  Prefactor     .10000E-03    37.741        .20242E-05** at limit **
   9  Prefactor     .10000E-03    7.7648        .16407E-05** at limit **
  10  norm          .10000E-03    10.277        .23788E-05** at limit **
  11  Prefactor     .10000E-03    8.6019       -.34277E-05** at limit **
  12  Prefactor     28.416        33.169       -.56775E-05    .23684E-03
  13  norm          .10000E-03    .83810       -.37651E-07** at limit **
  14  Prefactor     2.1055        3.0290       -.14706E-06   -.44377E-03
  15  Prefactor     .10000E-03    .70307        .88939E-07** at limit **
  16  norm          .10001E-03    .73523       -.15129E-05** at limit **
  17  Prefactor     29.510        24.585        .12484E-05   -.32788E-04
  18  Prefactor     44.119        23.253        .93275E-05    .77413E-04
  19  Prefactor     3.8808        8.1383       -.58958E-06   -.96127E-04
  20  Normalizat    .92462        .16495       -.10487E-05    .54960E-03
  21  Prefactor     1.1333        .94779E-01    .12868E-06    .50542E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.1898
  Prefactor  = 18.8474
  Prefactor  = 0.0001
  Prefactor  = 35.6625
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.96438
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 28.4155
  norm       = 0.000100002
  Prefactor  = 2.10548
  Prefactor  = 0.0001
  norm       = 0.000100008
  Prefactor  = 29.5105
  Prefactor  = 44.1192
  Prefactor  = 3.8808
  Normalizat = 0.924615
  Prefactor  = 1.13333
 **********
 **   18 **HESSE 
 **********

 FCN=   10831.15     FROM HESSE     STATUS=OK           315 CALLS     2574 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.190        22.843        .96592E-04   -1.4879    
   2  Prefactor     18.847        31.230        .92256E-04   -1.4839    
   3  Prefactor     .10000E-03    7.9054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     35.663        23.487        .67110E-04   -1.4513    
   5  Prefactor     .10000E-03    22.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    14.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.9644        .70088        .40713E-04   -1.5364    
   8  Prefactor     .10000E-03    37.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.7603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    10.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.5692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     28.416        33.176        .75150E-04   -1.4641    
  13  norm          .10000E-03    7.0594        .18264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.1055        3.0100        .20932E-03   -1.5418    
  15  Prefactor     .10000E-03    1.8657        .16762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10001E-03    3.1352        .16615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     29.510        24.579        .73755E-04   -1.4621    
  18  Prefactor     44.119        23.510        .60370E-04   -1.4379    
  19  Prefactor     3.8808        8.1325        .20483E-03   -1.5314    
  20  Normalizat    .92462        .18228        .32565E-03   -.95600    
  21  Prefactor     1.1333        .10652        .18395E-03   -.88408    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4726e-09
Minuit parameter uncertainties:
  1  22.8543
  2  31.2566
  3  2.80578e-05
  4  23.4935
  5  4.57084e-05
  6  2.48079e-05
  7  0.700879
  8  0.000164377
  9  6.66772e-05
  10  5.92508e-05
  11  0.000139961
  12  33.1975
  13  0.000208152
  14  3.01018
  15  1.25533e-05
  16  0.000307785
  17  24.587
  18  23.5153
  19  8.13479
  20  0.182398
  21  0.106538
Done.

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

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  2.964e+00  7.009e-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.065e-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:  9.246e-01  1.824e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 77.27
Ra Dec: 110.488 71.341
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 1.41e-07 +/- 3.34e-08
Energy Flux (Fixed Index): 8.40e-05 +/- 1.99e-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) = 10829.2679037
delta logL = 1.88149579405

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10829.2431264
delta logL = 1.90627312236

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9438       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6098       1.0000          .0000       5.0000    
     3 'Normalizat'    .96487       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1203       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=   10829.24     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      212 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9438        .73013        .59180E-02   -.16003E-03
   2  alpha         1.6098        .17144        .17380       -.61761E-04
   3  Normalizat    .96487        .15098        .72278E-01    .59897E-04
   4  Prefactor     1.1203        .93254E-01    .36863E-01   -.23708E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.94376
  alpha      = 1.6098
  Normalizat = 0.96487
  Prefactor  = 1.12025
 **********
 **   18 **HESSE 
 **********

 FCN=   10829.24     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .94E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9438        .76198        .42825E-04   -1.5365    
   2  alpha         1.6098        .18579        .73965E-02   -.36407    
   3  Normalizat    .96487        .16875        .31980E-03   -.94217    
   4  Prefactor     1.1203        .10428        .18495E-03   -.88822    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.40296e-12
Minuit parameter uncertainties:
  1  0.761987
  2  0.185987
  3  0.168841
  4  0.104301
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/299671': 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) = 10829.2431264
delta logL = 1.90627312409

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  2.944e+00  7.620e-01  1.000e-04  1.000e+04 ( 1.000e-11)
257        alpha:  1.610e+00  1.860e-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.120e+00  1.043e-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:  9.649e-01  1.688e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 80.98
Ra Dec: 110.488 71.341
Photon Index (Free Index): 1.61 +/- 0.19
Photon Flux (Free Index): 1.05e-07 +/- 3.18e-08
Energy Flux (Free Index): 1.50e-04 +/- 6.17e-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/299671/cmap_HighResolution_618019201_618278401_4FGL_J0721.9+7120_daily_bin1461.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.41e-07', energy_flux2='1.50e-04', photon_flux_error='3.34e-08', dlogl='1.91e+00', energy_flux='8.40e-05', photon_flux2='1.05e-07', job_status='DONE', time_completed='2021-08-27 04:51:37.902068', photon_index_error2='0.19', photon_index2='1.61', ts='77.27', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='6.17e-05', EG='0.92', time_epoch_completed='1630065097.9', return_code='0', job_id='299671', GAL2='1.12', EG2='0.96', return_code2='0', energy_flux_error='1.99e-05', photon_flux_error2='3.18e-08', ts2='80.98', photon_index='1.99' WHERE bin_id='1461' AND source_name='4FGL J0721.9+7120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 04:51:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 299671: <4FGL_J0721.9+7120_daily_bin1461> in cluster <slac> Done

Job <4FGL_J0721.9+7120_daily_bin1461> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Aug 27 04:35:22 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 04:35:24 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:35:24 2021
Terminated at Fri Aug 27 04:51:38 2021
Results reported at Fri Aug 27 04:51:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0721.9+7120_daily_bin1461 110.488 71.3405 618019201 618278401 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 :                                   939.07 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             341.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   974 sec.
    Turnaround time :                            976 sec.

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

