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


Performing analysis on: 4FGL_J0721.9+7120_daily_bin1449
RA = 110.488, Dec = 71.3405
tmin = 614908801, tmax = 615168001
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='298239', job_status='RUN', time_executed='2021-08-27 04:32:59.713087', time_epoch_executed='1630063979.71' WHERE source_name='4FGL J0721.9+7120' and cadence='daily' and bin_id='1449'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/298239

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/298239/ft1_4FGL_J0721.9+7120_daily_bin1449.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/298239/ft2_4FGL_J0721.9+7120_daily_bin1449.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/298239/ft1_4FGL_J0721.9+7120_daily_bin1449.fits outfile=/scratch/kocevski/298239/ft1_filteredMKT_4FGL_J0721.9+7120_daily_bin1449.fits ra=110.488 dec=71.3405 rad=12.0 tmin=614908801.0 tmax=615168001.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.77
user 3.34
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/298239/ft1_filtered_4FGL_J0721.9+7120_daily_bin1449.fits evtable="EVENTS" scfile=/scratch/kocevski/298239/ft2_4FGL_J0721.9+7120_daily_bin1449.fits sctable="SC_DATA" expcube=/scratch/kocevski/298239/ltcube_614908801_615168001_4FGL_J0721.9+7120_daily_bin1449.fits outfile=/scratch/kocevski/298239/expmap_614908801_615168001_4FGL_J0721.9+7120_daily_bin1449.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/298239/ltcube_614908801_615168001_4FGL_J0721.9+7120_daily_bin1449.fits
.....................!
real 194.68
user 186.69
sys 6.85

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/298239/ft1_filtered_4FGL_J0721.9+7120_daily_bin1449.fits scfile=/scratch/kocevski/298239/ft2_4FGL_J0721.9+7120_daily_bin1449.fits outfile=/scratch/kocevski/298239/cmap_614908801_615168001_4FGL_J0721.9+7120_daily_bin1449.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 0.58
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/298239/ft1_filtered_4FGL_J0721.9+7120_daily_bin1449.fits scfile=/scratch/kocevski/298239/ft2_4FGL_J0721.9+7120_daily_bin1449.fits outfile=/scratch/kocevski/298239/cmap_HighResolution_614908801_615168001_4FGL_J0721.9+7120_daily_bin1449.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25642       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .16603E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.990       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.7768       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10676E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.7689       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11369E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.7475       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.354       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10492E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2995       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.1800       1.0000         .10000E-03   10000.    
    17 'Prefactor '    61.223       1.0000         .10000E-03   10000.    
    18 'Prefactor '    37.454       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.0456       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .58186       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1519       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=   10188.95     FROM MIGRAD    STATUS=CONVERGED    465 CALLS     1903 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15128        18.708       -.10666E-05    .81392E-04
   2  Prefactor     .10000E-03    23.699        .44961E-06** at limit **
   3  Prefactor     21.996        22.453       -.21194E-05    .68477E-04
   4  Prefactor     5.7766        32.436       -.12421E-04   -.12995E-04
   5  Prefactor     .10000E-03    8.5722       -.65238E-07** at limit **
   6  norm          .10000E-03    4.5450        .46570E-08** at limit **
   7  norm          8.7687        1.0821        .71717E-07    .28771E-03
   8  Prefactor     .10000E-03    46.082        .15931E-06** at limit **
   9  Prefactor     .10000E-03    9.2933        .89772E-07** at limit **
  10  norm          8.7535        9.2474        .16359E-05    .32668E-04
  11  Prefactor     11.360        12.652        .51055E-05    .11067E-04
  12  Prefactor     .10000E-03    5.7978       -.93778E-07** at limit **
  13  norm          .10000E-03    .62768       -.31655E-07** at limit **
  14  Prefactor     2.2994        2.2241        .36947E-07    .35882E-04
  15  Prefactor     .10000E-03    .58508       -.12147E-06** at limit **
  16  norm          2.1794        2.1260        .20901E-06   -.88826E-03
  17  Prefactor     61.187        42.467        .83256E-05    .21504E-05
  18  Prefactor     37.455        21.489       -.30883E-05   -.48713E-05
  19  Prefactor     7.0505        9.6228       -.85859E-06   -.41934E-04
  20  Normalizat    .58198        .16453        .42527E-06    .42205E-04
  21  Prefactor     1.1519        .97266E-01    .17011E-06    .19406E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.151284
  Prefactor  = 0.0001
  Prefactor  = 21.9962
  Prefactor  = 5.77659
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.76867
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.75353
  Prefactor  = 11.3603
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.29938
  Prefactor  = 0.0001
  norm       = 2.17942
  Prefactor  = 61.1867
  Prefactor  = 37.4545
  Prefactor  = 7.05051
  Normalizat = 0.581977
  Prefactor  = 1.15191
 **********
 **   18 **HESSE 
 **********

 FCN=   10188.95     FROM HESSE     STATUS=OK           325 CALLS     2228 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15128        21.612        .11882       -1.5630    
   2  Prefactor     .10000E-03    23.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.996        22.150        .85415E-04   -1.4770    
   4  Prefactor     5.7766        31.869        .16710E-03   -1.5227    
   5  Prefactor     .10000E-03    8.5746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.5518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.7687        1.0823        .35141E-04   -1.5116    
   8  Prefactor     .10000E-03    46.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.3045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.7535        9.2541        .13553E-03   -1.5116    
  11  Prefactor     11.360        12.652        .11889E-03   -1.5034    
  12  Prefactor     .10000E-03    5.7996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .63237        .78077E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.2994        2.2224        .14428E-03   -1.5405    
  15  Prefactor     .10000E-03    .60901        .15073E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.1794        2.0993        .12691E-03   -1.5413    
  17  Prefactor     61.187        42.467        .51280E-04   -1.4142    
  18  Prefactor     37.455        21.295        .65488E-04   -1.4483    
  19  Prefactor     7.0505        9.6209        .15113E-03   -1.5177    
  20  Normalizat    .58198        .17710        .38561E-03   -1.0875    
  21  Prefactor     1.1519        .10615        .17423E-03   -.87824    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.26345e-10
Minuit parameter uncertainties:
  1  3.61652
  2  7.21455e-06
  3  22.1584
  4  27.1585
  5  1.00913e-06
  6  1.07617e-06
  7  1.08227
  8  2.4751e-05
  9  1.75005e-05
  10  9.25557
  11  12.6549
  12  1.01882e-06
  13  2.77825e-06
  14  2.22243
  15  9.02937e-06
  16  2.09935
  17  42.4879
  18  21.2989
  19  9.62302
  20  0.177269
  21  0.106173
Done.

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

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  8.769e+00  1.082e+00  1.000e-04  1.000e+04 ( 1.000e-11)
257        alpha:  1.986e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
258         beta:  5.814e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
259           Eb:  7.346e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
688    Prefactor:  1.152e+00  1.062e-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.820e-01  1.773e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 297.41
Ra Dec: 110.488 71.341
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 4.18e-07 +/- 5.16e-08
Energy Flux (Fixed Index): 2.48e-04 +/- 3.07e-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) = 10188.917971
delta logL = 0.03622277662

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10188.9139773
delta logL = 0.0402164256757

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.8548       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9551       1.0000          .0000       5.0000    
     3 'Normalizat'    .58982       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1494       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=   10188.91     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      198 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.8549        1.2582        .33674E-02   -.27814E-03
   2  alpha         1.9551        .12084        .93771E-01    .43594E-04
   3  Normalizat    .58983        .15775        .86536E-01    .35676E-04
   4  Prefactor     1.1494        .96323E-01    .35954E-01    .14130E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 8.85489
  alpha      = 1.95508
  Normalizat = 0.589832
  Prefactor  = 1.14937
 **********
 **   18 **HESSE 
 **********

 FCN=   10188.91     FROM HESSE     STATUS=OK            31 CALLS      229 TOTAL
                     EDM=   .46E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.8549        1.1267        .35481E-04   -1.5113    
   2  alpha         1.9551        .10904        .41081E-03   -.21973    
   3  Normalizat    .58983        .17118        .38334E-03   -1.0842    
   4  Prefactor     1.1494        .10484        .17443E-03   -.87904    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.64814e-12
Minuit parameter uncertainties:
  1  1.12665
  2  0.109073
  3  0.171331
  4  0.104863
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/298239': 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) = 10188.9139773
delta logL = 0.0402164390562

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  8.855e+00  1.127e+00  1.000e-04  1.000e+04 ( 1.000e-11)
257        alpha:  1.955e+00  1.091e-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.149e+00  1.049e-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.898e-01  1.713e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 297.08
Ra Dec: 110.488 71.341
Photon Index (Free Index): 1.96 +/- 0.11
Photon Flux (Free Index): 4.10e-07 +/- 5.82e-08
Energy Flux (Free Index): 2.59e-04 +/- 4.95e-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/298239/cmap_HighResolution_614908801_615168001_4FGL_J0721.9+7120_daily_bin1449.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.18e-07', energy_flux2='2.59e-04', photon_flux_error='5.16e-08', dlogl='4.02e-02', energy_flux='2.48e-04', photon_flux2='4.10e-07', job_status='DONE', time_completed='2021-08-27 04:46:47.844072', photon_index_error2='0.11', photon_index2='1.96', ts='297.41', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='4.95e-05', EG='0.58', time_epoch_completed='1630064807.84', return_code='0', job_id='298239', GAL2='1.15', EG2='0.59', return_code2='0', energy_flux_error='3.07e-05', photon_flux_error2='5.82e-08', ts2='297.08', photon_index='1.99' WHERE bin_id='1449' AND source_name='4FGL J0721.9+7120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 04:46:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 298239: <4FGL_J0721.9+7120_daily_bin1449> in cluster <slac> Done

Job <4FGL_J0721.9+7120_daily_bin1449> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 27 04:30:28 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 04:30:30 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:30:30 2021
Terminated at Fri Aug 27 04:46:48 2021
Results reported at Fri Aug 27 04:46:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0721.9+7120_daily_bin1449 110.488 71.3405 614908801 615168001 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 :                                   819.18 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             289.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            980 sec.

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

