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


Performing analysis on: 4FGL_J0721.9+7120_daily_bin1262
RA = 110.488, Dec = 71.3405
tmin = 566438401, tmax = 566697601
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='297107', job_status='RUN', time_executed='2021-08-27 04:28:55.188810', time_epoch_executed='1630063735.19' WHERE source_name='4FGL J0721.9+7120' and cadence='daily' and bin_id='1262'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/297107

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/297107/ft1_4FGL_J0721.9+7120_daily_bin1262.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/297107/ft2_4FGL_J0721.9+7120_daily_bin1262.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/297107/ft1_4FGL_J0721.9+7120_daily_bin1262.fits outfile=/scratch/kocevski/297107/ft1_filteredMKT_4FGL_J0721.9+7120_daily_bin1262.fits ra=110.488 dec=71.3405 rad=12.0 tmin=566438401.0 tmax=566697601.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 2.35
user 2.01
sys 0.32

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/297107/ft1_filtered_4FGL_J0721.9+7120_daily_bin1262.fits" evtable="EVENTS" scfile=/scratch/kocevski/297107/ft2_4FGL_J0721.9+7120_daily_bin1262.fits sctable="SC_DATA" outfile=/scratch/kocevski/297107/ltcube_566438401_566697601_4FGL_J0721.9+7120_daily_bin1262.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/297107/ft2_4FGL_J0721.9+7120_daily_bin1262.fits
.....................!
real 13.30
user 12.77
sys 0.48

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/297107/ft1_filtered_4FGL_J0721.9+7120_daily_bin1262.fits evtable="EVENTS" scfile=/scratch/kocevski/297107/ft2_4FGL_J0721.9+7120_daily_bin1262.fits sctable="SC_DATA" expcube=/scratch/kocevski/297107/ltcube_566438401_566697601_4FGL_J0721.9+7120_daily_bin1262.fits outfile=/scratch/kocevski/297107/expmap_566438401_566697601_4FGL_J0721.9+7120_daily_bin1262.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/297107/ltcube_566438401_566697601_4FGL_J0721.9+7120_daily_bin1262.fits
.....................!
real 191.85
user 186.32
sys 5.15

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/297107/ft1_filtered_4FGL_J0721.9+7120_daily_bin1262.fits scfile=/scratch/kocevski/297107/ft2_4FGL_J0721.9+7120_daily_bin1262.fits outfile=/scratch/kocevski/297107/cmap_566438401_566697601_4FGL_J0721.9+7120_daily_bin1262.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.69
user 0.37
sys 0.28

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/297107/ft1_filtered_4FGL_J0721.9+7120_daily_bin1262.fits scfile=/scratch/kocevski/297107/ft2_4FGL_J0721.9+7120_daily_bin1262.fits outfile=/scratch/kocevski/297107/cmap_HighResolution_566438401_566697601_4FGL_J0721.9+7120_daily_bin1262.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.68
user 0.38
sys 0.29

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.2496       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    63.352       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.4259       1.0000         .10000E-03   10000.    
     7 'norm      '    10.807       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    118.08       1.0000         .10000E-03   10000.    
    10 'norm      '    31.093       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    48.979       1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.3607       1.0000         .10000E-03   10000.    
    16 'norm      '    1.1472       1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.052       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.992       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1691       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .78383       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=   5969.555     FROM MIGRAD    STATUS=CONVERGED    449 CALLS     2209 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2464        40.580        .43019E-06   -.17090E-05
   2  Prefactor     .10000E-03    39.678       -.98950E-07** at limit **
   3  Prefactor     63.352        33.595        .13090E-06   -.78691E-05
   4  Prefactor     .10000E-03    23.690        .37151E-07** at limit **
   5  Prefactor     .10000E-03    82.102       -.21635E-06** at limit **
   6  norm          5.4248        12.900        .48534E-05   -.64366E-04
   7  norm          10.807        1.8319       -.41776E-08   -.13801E-03
   8  Prefactor     .10000E-03    141.99        .13524E-06** at limit **
   9  Prefactor     118.11        65.763        .23142E-06    .24888E-04
  10  norm          31.096        26.064       -.64780E-07   -.98405E-05
  11  Prefactor     .10000E-03    17.034        .21956E-07** at limit **
  12  Prefactor     48.980        42.866        .37002E-06   -.24571E-04
  13  norm          .10000E-03    2.5218       -.18476E-07** at limit **
  14  Prefactor     .10000E-03    1.9458        .31505E-07** at limit **
  15  Prefactor     7.3614        4.0128        .63894E-07   -.58317E-04
  16  norm          1.1479        3.0608        .14105E-05   -.41410E-04
  17  Prefactor     38.147        94.922        .16968E-05    .69841E-04
  18  Prefactor     .10000E-03    16.532       -.29403E-06** at limit **
  19  Prefactor     11.994        16.137       -.17734E-07   -.12982E-04
  20  Normalizat    1.1686        .23330       -.28908E-05    .27366E-04
  21  Prefactor     .78408        .11976        .11350E-05   -.17322E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.24641
  Prefactor  = 0.0001
  Prefactor  = 63.3517
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.42479
  norm       = 10.8068
  Prefactor  = 0.0001
  Prefactor  = 118.111
  norm       = 31.0956
  Prefactor  = 0.0001
  Prefactor  = 48.9797
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.36135
  norm       = 1.14793
  Prefactor  = 38.1468
  Prefactor  = 0.0001
  Prefactor  = 11.994
  Normalizat = 1.1686
  Prefactor  = 0.784077
 **********
 **   18 **HESSE 
 **********

 FCN=   5969.555     FROM HESSE     STATUS=OK           311 CALLS     2520 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2464        40.625        .14897E-03   -1.5170    
   2  Prefactor     .10000E-03    39.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     63.352        33.594        .50417E-04   -1.4114    
   4  Prefactor     .10000E-03    23.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    82.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.4248        13.031        .86255E-03   -1.5242    
   7  norm          10.807        1.8341        .39524E-04   -1.5050    
   8  Prefactor     .10000E-03    142.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     118.11        66.194        .37030E-04   -1.3530    
  10  norm          31.096        26.061        .71856E-04   -1.4592    
  11  Prefactor     .10000E-03    17.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     48.980        43.097        .57299E-04   -1.4307    
  13  norm          .10000E-03    2.5438        .11978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.9606        .10523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.3614        4.0154        .10935E-03   -1.5165    
  16  norm          1.1479        3.0488        .20313E-03   -1.5494    
  17  Prefactor     38.147        94.818        .64974E-04   -1.4472    
  18  Prefactor     .10000E-03    16.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.994        16.132        .11568E-03   -1.5015    
  20  Normalizat    1.1686        .25945        .30900E-03   -.87579    
  21  Prefactor     .78408        .13397        .20659E-03   -1.0032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44621e-10
Minuit parameter uncertainties:
  1  34.3509
  2  1.80136e-05
  3  33.604
  4  6.14975e-06
  5  2.97805e-05
  6  13.0378
  7  1.8341
  8  0.000206754
  9  66.236
  10  26.0709
  11  3.70224e-06
  12  43.1241
  13  2.06043e-06
  14  2.6838e-07
  15  4.01552
  16  3.04917
  17  95.1963
  18  4.96794e-05
  19  16.1375
  20  0.259731
  21  0.134021
Done.

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

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  1.081e+01  1.834e+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:  7.841e-01  1.340e-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.169e+00  2.597e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 168.18
Ra Dec: 110.488 71.341
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 5.15e-07 +/- 8.74e-08
Energy Flux (Fixed Index): 3.06e-04 +/- 5.19e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5969.49037496
delta logL = 0.0642931183902

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5969.48368321
delta logL = 0.070984872973

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.901       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9287       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1846       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77939       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=   5969.484     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      196 TOTAL
                     EDM=   .60E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.901        1.9082        .30336E-02    .45800E-04
   2  alpha         1.9287        .15928        .10294        .36283E-04
   3  Normalizat    1.1846        .20797        .69502E-01    .18928E-06
   4  Prefactor     .77939        .11473        .43448E-01    .16635E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.901
  alpha      = 1.92874
  Normalizat = 1.18462
  Prefactor  = 0.779389
 **********
 **   18 **HESSE 
 **********

 FCN=   5969.484     FROM HESSE     STATUS=OK            31 CALLS      227 TOTAL
                     EDM=   .48E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.901        1.7910        .40103E-04   -1.5048    
   2  alpha         1.9287        .15148        .44909E-03   -.23054    
   3  Normalizat    1.1846        .23353        .30751E-03   -.87079    
   4  Prefactor     .77939        .12872        .20719E-03   -1.0049    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.75834e-12
Minuit parameter uncertainties:
  1  1.79096
  2  0.151578
  3  0.233731
  4  0.128773
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/297107': 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) = 5969.48368321
delta logL = 0.0709848729803

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  1.090e+01  1.791e+00  1.000e-04  1.000e+04 ( 1.000e-11)
257        alpha:  1.929e+00  1.516e-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:  7.794e-01  1.288e-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.185e+00  2.337e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 169.56
Ra Dec: 110.488 71.341
Photon Index (Free Index): 1.93 +/- 0.15
Photon Flux (Free Index): 4.92e-07 +/- 1.01e-07
Energy Flux (Free Index): 3.28e-04 +/- 8.17e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/297107/cmap_HighResolution_566438401_566697601_4FGL_J0721.9+7120_daily_bin1262.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.15e-07', energy_flux2='3.28e-04', photon_flux_error='8.74e-08', dlogl='7.10e-02', energy_flux='3.06e-04', photon_flux2='4.92e-07', job_status='DONE', time_completed='2021-08-27 04:39:44.412988', photon_index_error2='0.15', photon_index2='1.93', ts='168.18', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='8.17e-05', EG='1.17', time_epoch_completed='1630064384.41', return_code='0', job_id='297107', GAL2='0.78', EG2='1.18', return_code2='0', energy_flux_error='5.19e-05', photon_flux_error2='1.01e-07', ts2='169.56', photon_index='1.99' WHERE bin_id='1262' AND source_name='4FGL J0721.9+7120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 04:39:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 297107: <4FGL_J0721.9+7120_daily_bin1262> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0721.9+7120_daily_bin1262 110.488 71.3405 566438401 566697601 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 :                                   643.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             261.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            851 sec.

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

