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


Performing analysis on: 4FGL_J0702.7-1951_daily_bin1073
RA = 105.678, Dec = -19.8517
tmin = 517449601, tmax = 517708801
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='76414', job_status='RUN', time_executed='2021-08-26 16:21:39.879593', time_epoch_executed='1630020099.88' WHERE source_name='4FGL J0702.7-1951' and cadence='daily' and bin_id='1073'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/76414

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/76414/ft1_4FGL_J0702.7-1951_daily_bin1073.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/76414/ft2_4FGL_J0702.7-1951_daily_bin1073.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/76414/ft1_4FGL_J0702.7-1951_daily_bin1073.fits outfile=/scratch/kocevski/76414/ft1_filteredMKT_4FGL_J0702.7-1951_daily_bin1073.fits ra=105.678 dec=-19.8517 rad=12.0 tmin=517449601.0 tmax=517708801.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.78
user 5.48
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/76414/ft2_4FGL_J0702.7-1951_daily_bin1073.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/76414/ft2_4FGL_J0702.7-1951_daily_bin1073.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/76414/ft1_filteredMKT_4FGL_J0702.7-1951_daily_bin1073.fits evtable="EVENTS" outfile="/scratch/kocevski/76414/ft1_filtered_4FGL_J0702.7-1951_daily_bin1073.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.50
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/76414/ft1_filtered_4FGL_J0702.7-1951_daily_bin1073.fits" evtable="EVENTS" scfile=/scratch/kocevski/76414/ft2_4FGL_J0702.7-1951_daily_bin1073.fits sctable="SC_DATA" outfile=/scratch/kocevski/76414/ltcube_517449601_517708801_4FGL_J0702.7-1951_daily_bin1073.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/76414/ft2_4FGL_J0702.7-1951_daily_bin1073.fits
.....................!
real 11.93
user 11.56
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/76414/ft1_filtered_4FGL_J0702.7-1951_daily_bin1073.fits evtable="EVENTS" scfile=/scratch/kocevski/76414/ft2_4FGL_J0702.7-1951_daily_bin1073.fits sctable="SC_DATA" expcube=/scratch/kocevski/76414/ltcube_517449601_517708801_4FGL_J0702.7-1951_daily_bin1073.fits outfile=/scratch/kocevski/76414/expmap_517449601_517708801_4FGL_J0702.7-1951_daily_bin1073.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/76414/ltcube_517449601_517708801_4FGL_J0702.7-1951_daily_bin1073.fits
.....................!
real 192.24
user 186.73
sys 5.10

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 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J0702.7-1951 @ 105.678 -19.8517

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/76414/ft1_filtered_4FGL_J0702.7-1951_daily_bin1073.fits scfile=/scratch/kocevski/76414/ft2_4FGL_J0702.7-1951_daily_bin1073.fits outfile=/scratch/kocevski/76414/cmap_517449601_517708801_4FGL_J0702.7-1951_daily_bin1073.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=105.678 yref=-19.8517 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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/76414/ft1_filtered_4FGL_J0702.7-1951_daily_bin1073.fits scfile=/scratch/kocevski/76414/ft2_4FGL_J0702.7-1951_daily_bin1073.fits outfile=/scratch/kocevski/76414/cmap_HighResolution_517449601_517708801_4FGL_J0702.7-1951_daily_bin1073.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=105.678 yref=-19.8517 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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/76414/ft1_filtered_4FGL_J0702.7-1951_daily_bin1073.fits evtable="EVENTS" scfile=/scratch/kocevski/76414/ft2_4FGL_J0702.7-1951_daily_bin1073.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/76414/Model_4FGL_J0702.7-1951_daily_bin1073.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/76414/ft1_filtered_4FGL_J0702.7-1951_daily_bin1073.fits.....................!
real 185.45
user 183.80
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/76414/ft1_filtered_4FGL_J0702.7-1951_daily_bin1073.fits', '/scratch/kocevski/76414/ft2_4FGL_J0702.7-1951_daily_bin1073.fits', expMap='/scratch/kocevski/76414/expmap_517449601_517708801_4FGL_J0702.7-1951_daily_bin1073.fits', expCube='/scratch/kocevski/76414/ltcube_517449601_517708801_4FGL_J0702.7-1951_daily_bin1073.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/76414/Model_4FGL_J0702.7-1951_daily_bin1073.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0702.7-1951'

4FGL J0702.7-1951
   Spectrum: LogParabola
249         norm:  1.267e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
250        alpha:  2.015e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
251         beta:  8.908e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
252           Eb:  1.379e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/76414/ft1_filtered_4FGL_J0702.7-1951_daily_bin1073.fits
Spacecraft file(s): /scratch/kocevski/76414/ft2_4FGL_J0702.7-1951_daily_bin1073.fits
Exposure map: /scratch/kocevski/76414/expmap_517449601_517708801_4FGL_J0702.7-1951_daily_bin1073.fits
Exposure cube: /scratch/kocevski/76414/ltcube_517449601_517708801_4FGL_J0702.7-1951_daily_bin1073.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/76414/Model_4FGL_J0702.7-1951_daily_bin1073.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) = 12483.4723965

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17418E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.3401       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5707       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    114.25       1.0000         .10000E-03   10000.    
    13 'norm      '    1.9255       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.7543       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.6331       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .94502       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5410E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12483.42     FROM MIGRAD    STATUS=CONVERGED    368 CALLS     1507 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10044E-03    7.9078       -.22337E-05** at limit **
   2  Prefactor     .10000E-03    6.8146       -.39059E-05** at limit **
   3  Prefactor     .10000E-03    5.4114        .14085E-05** at limit **
   4  norm          .10000E-03    7.6493        .45699E-05** at limit **
   5  norm          .10000E-03    1.0356        .12868E-06** at limit **
   6  norm          .10000E-03    5.2549        .67427E-06** at limit **
   7  Prefactor     .10000E-03    5.1012       -.11762E-05** at limit **
   8  norm          .10000E-03    10.835       -.53080E-05** at limit **
   9  norm          4.3401        11.746        .92327E-06    .10948E-04
  10  Prefactor     2.5709        .46285       -.29207E-09   -.64749E-03
  11  norm          .10000E-03    37.533        .40725E-05** at limit **
  12  norm          114.25        69.978        .15039E-05    .34964E-04
  13  norm          1.9256        2.3784       -.13903E-07   -.15272E-04
  14  Prefactor     .10000E-03    9.7822        .13095E-05** at limit **
  15  norm          4.7545        2.3869        .13558E-07   -.26176E-04
  16  norm          .10000E-03    14.012        .25918E-05** at limit **
  17  Normalizat    1.6330        .34878        .48233E-06    .11452E-03
  18  Prefactor     .94503        .50178E-01   -.11389E-06    .13239E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100444
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.34006
  Prefactor  = 2.57093
  norm       = 0.0001
  norm       = 114.247
  norm       = 1.92559
  Prefactor  = 0.0001
  norm       = 4.7545
  norm       = 0.0001
  Normalizat = 1.63301
  Prefactor  = 0.945027
 **********
 **   18 **HESSE 
 **********

 FCN=   12483.42     FROM HESSE     STATUS=OK           244 CALLS     1751 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10044E-03    50.049        .55859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.8450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.4255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    7.7676        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.6099        .21913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.2698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.1957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    10.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.3401        14.254        .19335E-03   -1.5291    
  10  Prefactor     2.5709        6.2712        .12729E-02   -1.5387    
  11  norm          .10000E-03    37.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          114.25        70.077        .37639E-04   -1.3566    
  13  norm          1.9256        2.3680        .18614E-03   -1.5430    
  14  Prefactor     .10000E-03    9.7973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.7545        2.3842        .11742E-03   -1.5272    
  16  norm          .10000E-03    14.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.6330        .35757        .69413E-03   -.74106    
  18  Prefactor     .94503        .52754E-01    .13068E-03   -.94585    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.11148e-09
Minuit parameter uncertainties:
  1  0.00943777
  2  6.26683e-05
  3  3.40424e-05
  4  5.18392e-05
  5  1.95672e-05
  6  1.15267e-05
  7  6.01747e-06
  8  0.000113807
  9  14.2656
  10  6.27279
  11  0.000160048
  12  70.1282
  13  2.36812
  14  2.63257e-05
  15  2.3842
  16  5.94844e-05
  17  0.358138
  18  0.0527565
Done.

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

Extracting fit parameters...

4FGL J0702.7-1951
   Spectrum: LogParabola
249         norm:  1.926e+00  2.368e+00  1.000e-04  1.000e+04 ( 1.000e-12)
250        alpha:  2.015e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
251         beta:  8.908e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
252           Eb:  1.379e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
538    Prefactor:  9.450e-01  5.276e-02  0.000e+00  1.000e+01 ( 1.000e+00)
539        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
540        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
537   Normalization:  1.633e+00  3.581e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.41
Ra Dec: 105.678 -19.852
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 2.76e-08 +/- 3.40e-08
Energy Flux (Fixed Index): 1.80e-05 +/- 2.21e-05

TS (Fixed Index): 1.41
Ra Dec: 105.678 -19.852
Photon Flux Upper Limit: 1.30e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.46e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/76414/likelihoodResults_517449601_517708801_4FGL_J0702.7-1951_daily_bin1073.txt

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) = 12483.1918534
delta logL = 0.229401547847

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12483.1911865
delta logL = 0.23006841124

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9949       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3952       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6409       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94496       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5410E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12483.19     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      213 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9956        2.4317        .73322E-02    .79167E-04
   2  alpha         1.3949        .66438        .47946       -.59745E-04
   3  Normalizat    1.6408        .33224        .15591        .30116E-04
   4  Prefactor     .94497        .49659E-01    .29571E-01   -.20490E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.99564
  alpha      = 1.39492
  Normalizat = 1.64078
  Prefactor  = 0.944973
 **********
 **   18 **HESSE 
 **********

 FCN=   12483.19     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9956        2.3799        .17616E-03   -1.5425    
   2  alpha         1.3949        .76269        .30721E-01   -.45786    
   3  Normalizat    1.6408        .34898        .69289E-03   -.73896    
   4  Prefactor     .94497        .52554E-01    .13068E-03   -.94587    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07507e-11
Minuit parameter uncertainties:
  1  2.38
  2  0.778212
  3  0.349506
  4  0.0525568
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/76414': 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) = 12483.1911863
delta logL = 0.230068684694

Extracting fit parameters...

4FGL J0702.7-1951
   Spectrum: LogParabola
249         norm:  1.996e+00  2.380e+00  1.000e-04  1.000e+04 ( 1.000e-12)
250        alpha:  1.395e+00  7.782e-01  0.000e+00  5.000e+00 ( 1.000e+00)
251         beta:  8.908e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
252           Eb:  1.379e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
538    Prefactor:  9.450e-01  5.256e-02  0.000e+00  1.000e+01 ( 1.000e+00)
539        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
540        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
537   Normalization:  1.641e+00  3.495e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.87
Ra Dec: 105.678 -19.852
Photon Index (Free Index): 1.39 +/- 0.78
Photon Flux (Free Index): 1.43e-08 +/- 2.01e-08
Energy Flux (Free Index): 4.03e-05 +/- 6.90e-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/76414/cmap_HighResolution_517449601_517708801_4FGL_J0702.7-1951_daily_bin1073.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.46e-05', comment='SUCCESS', photon_flux='2.76e-08', energy_flux2='4.03e-05', photon_flux_error='3.40e-08', dlogl='2.30e-01', energy_flux='1.80e-05', photon_flux2='1.43e-08', job_status='DONE', time_completed='2021-08-26 16:35:38.229730', photon_index_error2='0.78', photon_index2='1.39', ts='1.41', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.30e-07', energy_flux_error2='6.90e-05', EG='1.63', time_epoch_completed='1630020938.23', return_code='0', job_id='76414', GAL2='0.94', EG2='1.64', return_code2='0', energy_flux_error='2.21e-05', photon_flux_error2='2.01e-08', ts2='1.87', photon_index='2.01' WHERE bin_id='1073' AND source_name='4FGL J0702.7-1951' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 16:35:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 76414: <4FGL_J0702.7-1951_daily_bin1073> in cluster <slac> Done

Job <4FGL_J0702.7-1951_daily_bin1073> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Aug 26 16:20:34 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 16:21:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 26 16:21:22 2021
Terminated at Thu Aug 26 16:35:41 2021
Results reported at Thu Aug 26 16:35:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0702.7-1951_daily_bin1073 105.678 -19.8517 517449601 517708801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0702.7-1951 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   835.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             368.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            907 sec.

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

