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


Performing analysis on: 4FGL_J0721.9+7120_daily_bin844
RA = 110.488, Dec = 71.3405
tmin = 458092801, tmax = 458352001
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='294168', job_status='RUN', time_executed='2021-08-27 04:16:24.920820', time_epoch_executed='1630062984.92' WHERE source_name='4FGL J0721.9+7120' and cadence='daily' and bin_id='844'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/294168

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/294168/ft1_4FGL_J0721.9+7120_daily_bin844.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/294168/ft2_4FGL_J0721.9+7120_daily_bin844.fits


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

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

Done.
real 5.11
user 3.36
sys 1.62

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/294168/ft1_filtered_4FGL_J0721.9+7120_daily_bin844.fits" evtable="EVENTS" scfile=/scratch/kocevski/294168/ft2_4FGL_J0721.9+7120_daily_bin844.fits sctable="SC_DATA" outfile=/scratch/kocevski/294168/ltcube_458092801_458352001_4FGL_J0721.9+7120_daily_bin844.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/294168/ft2_4FGL_J0721.9+7120_daily_bin844.fits
.....................!
real 13.73
user 11.70
sys 1.92

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/294168/ft1_filtered_4FGL_J0721.9+7120_daily_bin844.fits evtable="EVENTS" scfile=/scratch/kocevski/294168/ft2_4FGL_J0721.9+7120_daily_bin844.fits sctable="SC_DATA" expcube=/scratch/kocevski/294168/ltcube_458092801_458352001_4FGL_J0721.9+7120_daily_bin844.fits outfile=/scratch/kocevski/294168/expmap_458092801_458352001_4FGL_J0721.9+7120_daily_bin844.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/294168/ltcube_458092801_458352001_4FGL_J0721.9+7120_daily_bin844.fits
.....................!
real 193.07
user 185.49
sys 6.86

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/294168/ft1_filtered_4FGL_J0721.9+7120_daily_bin844.fits scfile=/scratch/kocevski/294168/ft2_4FGL_J0721.9+7120_daily_bin844.fits outfile=/scratch/kocevski/294168/cmap_458092801_458352001_4FGL_J0721.9+7120_daily_bin844.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.90
user 0.37
sys 1.52

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/294168/ft1_filtered_4FGL_J0721.9+7120_daily_bin844.fits scfile=/scratch/kocevski/294168/ft2_4FGL_J0721.9+7120_daily_bin844.fits outfile=/scratch/kocevski/294168/cmap_HighResolution_458092801_458352001_4FGL_J0721.9+7120_daily_bin844.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.94
user 0.37
sys 1.52

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.8716       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .28921E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.029       1.0000         .10000E-03   10000.    
    10 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.311       1.0000         .10000E-03   10000.    
    12 'Prefactor '    64.422       1.0000         .10000E-03   10000.    
    13 'norm      '    .27900       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .44282       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.1395       1.0000         .10000E-03   10000.    
    16 'norm      '    7.2848       1.0000         .10000E-03   10000.    
    17 'Prefactor '    29.575       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.1805       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0838       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .94094       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=   10599.27     FROM MIGRAD    STATUS=CONVERGED    449 CALLS     2255 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.948        .16188E-04** at limit **
   2  Prefactor     .10000E-03    53.387       -.20602E-05** at limit **
   3  Prefactor     .10000E-03    11.457        .73282E-05** at limit **
   4  Prefactor     .10000E-03    7.7941       -.42109E-05** at limit **
   5  Prefactor     .10000E-03    16.798       -.18439E-04** at limit **
   6  norm          .10000E-03    3.5353       -.27401E-08** at limit **
   7  norm          3.8716        .81040       -.42150E-07    .65061E-03
   8  Prefactor     .10001E-03    360.04       -.16828E-03** at limit **
   9  Prefactor     28.034        28.644        .37077E-05    .19813E-03
  10  norm          .10000E-03    6.6004        .29919E-05** at limit **
  11  Prefactor     22.298        21.395       -.51612E-05    .63289E-04
  12  Prefactor     64.438        37.483        .13268E-04    .39958E-03
  13  norm          .27901        1.0505        .37609E-06   -.98111E-03
  14  Prefactor     .45253        2.2066       -.27170E-05   -.31328E-03
  15  Prefactor     2.1394        1.4774        .28731E-06   -.48594E-03
  16  norm          7.2849        2.5664        .25470E-07    .15212E-03
  17  Prefactor     29.575        34.981        .11580E-06   -.24746E-05
  18  Prefactor     9.1812        16.497       -.13426E-06    .11649E-04
  19  Prefactor     .10000E-03    5.9406       -.81829E-06** at limit **
  20  Normalizat    1.0838        .16663       -.27654E-05    .56235E-03
  21  Prefactor     .94091        .90686E-01    .73082E-06    .17511E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.87159
  Prefactor  = 0.000100012
  Prefactor  = 28.0342
  norm       = 0.0001
  Prefactor  = 22.2983
  Prefactor  = 64.4383
  norm       = 0.279008
  Prefactor  = 0.452533
  Prefactor  = 2.13938
  norm       = 7.28485
  Prefactor  = 29.5752
  Prefactor  = 9.18123
  Prefactor  = 0.0001
  Normalizat = 1.08379
  Prefactor  = 0.940913
 **********
 **   18 **HESSE 
 **********

 FCN=   10599.27     FROM HESSE     STATUS=OK           313 CALLS     2568 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    53.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.8100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.5377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.8716        .81140        .39831E-04   -1.5314    
   8  Prefactor     .10001E-03    357.65        .21405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     28.034        28.754        .75671E-04   -1.4649    
  10  norm          .10000E-03    6.5964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     22.298        21.327        .84800E-04   -1.4763    
  12  Prefactor     64.438        37.580        .49999E-04   -1.4101    
  13  norm          .27901        4.2834        .19166E-02   -1.5602    
  14  Prefactor     .45253        8.7569        .28142E-02   -1.5573    
  15  Prefactor     2.1394        1.4642        .96138E-04   -1.5415    
  16  norm          7.2849        2.5788        .87622E-04   -1.5168    
  17  Prefactor     29.575        34.991        .73672E-04   -1.4620    
  18  Prefactor     9.1812        16.483        .13227E-03   -1.5102    
  19  Prefactor     .10000E-03    5.9606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0838        .19402        .30423E-03   -.90274    
  21  Prefactor     .94091        .10536        .19142E-03   -.94726    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68338e-09
Minuit parameter uncertainties:
  1  9.88438e-06
  2  0.000122589
  3  6.50873e-06
  4  5.84517e-06
  5  4.04224e-05
  6  4.98419e-06
  7  0.811399
  8  0.00410434
  9  28.768
  10  4.10035e-05
  11  21.3338
  12  37.594
  13  2.18622
  14  3.98158
  15  1.46427
  16  2.57887
  17  35.0155
  18  16.4911
  19  6.27672e-06
  20  0.194147
  21  0.105384
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
688    Prefactor:  9.409e-01  1.054e-01  0.000e+00  1.000e+01 ( 1.000e+00)
689        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
690        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
687   Normalization:  1.084e+00  1.941e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 88.83
Ra Dec: 110.488 71.341
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 1.85e-07 +/- 3.87e-08
Energy Flux (Fixed Index): 1.10e-04 +/- 2.30e-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) = 10599.1498268
delta logL = 0.119862890075

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10599.1425521
delta logL = 0.127137659067

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7880       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0810       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0682       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94593       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=   10599.14     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      205 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7880        1.5486        .51853E-02    .21138E-02
   2  alpha         2.0811        .35598        .16264        .15093E-03
   3  Normalizat    1.0684        .15544        .69154E-01    .36284E-03
   4  Prefactor     .94587        .90360E-01    .45588E-01    .62207E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.78803
  alpha      = 2.08107
  Normalizat = 1.06837
  Prefactor  = 0.945875
 **********
 **   18 **HESSE 
 **********

 FCN=   10599.14     FROM HESSE     STATUS=OK            29 CALLS      234 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7880        .79680        .38617E-04   -1.5319    
   2  alpha         2.0811        .19030        .69185E-02   -.16837    
   3  Normalizat    1.0684        .17619        .30597E-03   -.90774    
   4  Prefactor     .94587        .10289        .19093E-03   -.94556    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02027e-10
Minuit parameter uncertainties:
  1  0.7968
  2  0.190492
  3  0.176284
  4  0.102911
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/294168': 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) = 10599.1425515
delta logL = 0.127138246115

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
688    Prefactor:  9.459e-01  1.029e-01  0.000e+00  1.000e+01 ( 1.000e+00)
689        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
690        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
687   Normalization:  1.068e+00  1.763e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 89.16
Ra Dec: 110.488 71.341
Photon Index (Free Index): 2.08 +/- 0.19
Photon Flux (Free Index): 1.99e-07 +/- 4.83e-08
Energy Flux (Free Index): 9.94e-05 +/- 2.74e-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/294168/cmap_HighResolution_458092801_458352001_4FGL_J0721.9+7120_daily_bin844.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.85e-07', energy_flux2='9.94e-05', photon_flux_error='3.87e-08', dlogl='1.27e-01', energy_flux='1.10e-04', photon_flux2='1.99e-07', job_status='DONE', time_completed='2021-08-27 04:31:43.483868', photon_index_error2='0.19', photon_index2='2.08', ts='88.83', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='2.74e-05', EG='1.08', time_epoch_completed='1630063903.48', return_code='0', job_id='294168', GAL2='0.95', EG2='1.07', return_code2='0', energy_flux_error='2.30e-05', photon_flux_error2='4.83e-08', ts2='89.16', photon_index='1.99' WHERE bin_id='844' AND source_name='4FGL J0721.9+7120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 04:31:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 294168: <4FGL_J0721.9+7120_daily_bin844> in cluster <slac> Done

Job <4FGL_J0721.9+7120_daily_bin844> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 27 04:15:41 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 04:15:42 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:15:42 2021
Terminated at Fri Aug 27 04:31:44 2021
Results reported at Fri Aug 27 04:31:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0721.9+7120_daily_bin844 110.488 71.3405 458092801 458352001 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 :                                   936.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             352.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            963 sec.

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

