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


Performing analysis on: 4FGL_J0710.9+4733_daily_bin778
RA = 107.732, Dec = 47.553
tmin = 440985601, tmax = 441244801
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='164877', job_status='RUN', time_executed='2021-08-26 21:09:16.644499', time_epoch_executed='1630037356.64' WHERE source_name='4FGL J0710.9+4733' and cadence='daily' and bin_id='778'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164877

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164877/ft1_4FGL_J0710.9+4733_daily_bin778.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164877/ft2_4FGL_J0710.9+4733_daily_bin778.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164877/ft1_4FGL_J0710.9+4733_daily_bin778.fits outfile=/scratch/kocevski/164877/ft1_filteredMKT_4FGL_J0710.9+4733_daily_bin778.fits ra=107.732 dec=47.553 rad=12.0 tmin=440985601.0 tmax=441244801.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.90
user 2.44
sys 0.43

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/164877/ft2_4FGL_J0710.9+4733_daily_bin778.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/164877/ft2_4FGL_J0710.9+4733_daily_bin778.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/164877/ft1_filteredMKT_4FGL_J0710.9+4733_daily_bin778.fits evtable="EVENTS" outfile="/scratch/kocevski/164877/ft1_filtered_4FGL_J0710.9+4733_daily_bin778.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.65
user 0.26
sys 0.37

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/164877/ft1_filtered_4FGL_J0710.9+4733_daily_bin778.fits" evtable="EVENTS" scfile=/scratch/kocevski/164877/ft2_4FGL_J0710.9+4733_daily_bin778.fits sctable="SC_DATA" outfile=/scratch/kocevski/164877/ltcube_440985601_441244801_4FGL_J0710.9+4733_daily_bin778.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/164877/ft2_4FGL_J0710.9+4733_daily_bin778.fits
.....................!
real 9.62
user 9.09
sys 0.50

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164877/ft1_filtered_4FGL_J0710.9+4733_daily_bin778.fits evtable="EVENTS" scfile=/scratch/kocevski/164877/ft2_4FGL_J0710.9+4733_daily_bin778.fits sctable="SC_DATA" expcube=/scratch/kocevski/164877/ltcube_440985601_441244801_4FGL_J0710.9+4733_daily_bin778.fits outfile=/scratch/kocevski/164877/expmap_440985601_441244801_4FGL_J0710.9+4733_daily_bin778.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/164877/ltcube_440985601_441244801_4FGL_J0710.9+4733_daily_bin778.fits
.....................!
real 145.17
user 141.18
sys 3.74

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

Setting source of interest to:
4FGL J0710.9+4733 @ 107.732 47.553

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/164877/ft1_filtered_4FGL_J0710.9+4733_daily_bin778.fits scfile=/scratch/kocevski/164877/ft2_4FGL_J0710.9+4733_daily_bin778.fits outfile=/scratch/kocevski/164877/cmap_440985601_441244801_4FGL_J0710.9+4733_daily_bin778.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=107.732 yref=47.553 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.77
user 0.30
sys 0.37

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/164877/ft1_filtered_4FGL_J0710.9+4733_daily_bin778.fits scfile=/scratch/kocevski/164877/ft2_4FGL_J0710.9+4733_daily_bin778.fits outfile=/scratch/kocevski/164877/cmap_HighResolution_440985601_441244801_4FGL_J0710.9+4733_daily_bin778.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=107.732 yref=47.553 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.29
sys 0.39

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/164877/ft1_filtered_4FGL_J0710.9+4733_daily_bin778.fits evtable="EVENTS" scfile=/scratch/kocevski/164877/ft2_4FGL_J0710.9+4733_daily_bin778.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/164877/Model_4FGL_J0710.9+4733_daily_bin778.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/164877/ft1_filtered_4FGL_J0710.9+4733_daily_bin778.fits.....................!
real 62.31
user 60.90
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/164877/ft1_filtered_4FGL_J0710.9+4733_daily_bin778.fits', '/scratch/kocevski/164877/ft2_4FGL_J0710.9+4733_daily_bin778.fits', expMap='/scratch/kocevski/164877/expmap_440985601_441244801_4FGL_J0710.9+4733_daily_bin778.fits', expCube='/scratch/kocevski/164877/ltcube_440985601_441244801_4FGL_J0710.9+4733_daily_bin778.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/164877/Model_4FGL_J0710.9+4733_daily_bin778.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0710.9+4733'

4FGL J0710.9+4733
   Spectrum: PowerLaw
261    Prefactor:  1.663e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
262        Index:  2.670e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
263        Scale:  6.204e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/164877/ft1_filtered_4FGL_J0710.9+4733_daily_bin778.fits
Spacecraft file(s): /scratch/kocevski/164877/ft2_4FGL_J0710.9+4733_daily_bin778.fits
Exposure map: /scratch/kocevski/164877/expmap_440985601_441244801_4FGL_J0710.9+4733_daily_bin778.fits
Exposure cube: /scratch/kocevski/164877/ltcube_440985601_441244801_4FGL_J0710.9+4733_daily_bin778.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/164877/Model_4FGL_J0710.9+4733_daily_bin778.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) = 8157.98207389

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6423       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.3504       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.2633       1.0000         .10000E-03   10000.    
     4 'norm      '    .57480       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.4984       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.536       1.0000         .10000E-03   10000.    
    12 'norm      '    8.0476       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .23226E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.0469       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .20352       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.5489       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10357E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    42.564       1.0000         .10000E-03   10000.    
    22 'norm      '    1.2130       1.0000         .10000E-03   10000.    
    23 'norm      '    2.3127       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .95928       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .85122       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8157.979     FROM MIGRAD    STATUS=CONVERGED    599 CALLS     3332 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6429        2.0674        .31282E-06   -.13079E-02
   2  Prefactor     5.3512        7.9264       -.52174E-07   -.96542E-04
   3  Prefactor     9.2738        21.435       -.46261E-05   -.26712E-03
   4  norm          .57558        3.9248        .19299E-05   -.64978E-03
   5  norm          .10000E-03    1.0921        .12893E-07** at limit **
   6  Prefactor     .10000E-03    7.2611        .87988E-07** at limit **
   7  norm          .10000E-03    1.9180       -.62342E-07** at limit **
   8  Prefactor     .10000E-03    4.1162        .17030E-06** at limit **
   9  Prefactor     4.4982        4.5256        .52380E-06    .27598E-03
  10  Prefactor     .10000E-03    5.3517       -.15334E-06** at limit **
  11  Prefactor     16.525        15.363       -.22008E-07    .14188E-04
  12  norm          8.0504        7.2414        .22047E-07    .44944E-05
  13  Prefactor     .10005E-03    19.813       -.37327E-06** at limit **
  14  Prefactor     6.0479        14.106        .70765E-06    .40656E-04
  15  Prefactor     .10000E-03    13.059       -.21742E-06** at limit **
  16  norm          .20337        .47501        .97381E-07   -.93719E-03
  17  Prefactor     .10000E-03    3.2277        .36559E-07** at limit **
  18  Prefactor     .10000E-03    10.495        .12477E-05** at limit **
  19  norm          3.5492        2.6454       -.16232E-07   -.15701E-03
  20  Prefactor     .10000E-03    10.497       -.11457E-05** at limit **
  21  Prefactor     42.558        50.769       -.13515E-05   -.51304E-04
  22  norm          1.2131        2.4278        .20821E-06   -.17062E-03
  23  norm          2.3129        1.7237       -.20835E-07   -.93892E-04
  24  Normalizat    .95921        .17642       -.18917E-06    .59321E-05
  25  Prefactor     .85119        .84833E-01   -.49442E-07    .46582E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.64293
  Prefactor  = 5.35119
  Prefactor  = 9.27375
  norm       = 0.575576
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.49816
  Prefactor  = 0.0001
  Prefactor  = 16.5254
  norm       = 8.05038
  Prefactor  = 0.000100053
  Prefactor  = 6.04792
  Prefactor  = 0.0001
  norm       = 0.203374
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.54919
  Prefactor  = 0.0001
  Prefactor  = 42.5582
  norm       = 1.21315
  norm       = 2.31287
  Normalizat = 0.959206
  Prefactor  = 0.851186
 **********
 **   18 **HESSE 
 **********

 FCN=   8157.979     FROM HESSE     STATUS=OK           439 CALLS     3771 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6429        2.1685        .58190E-03   -1.5383    
   2  Prefactor     5.3512        7.9612        .17374E-03   -1.5245    
   3  Prefactor     9.2738        22.897        .13168E-03   -1.5099    
   4  norm          .57558        5.1083        .38070E-02   -1.5556    
   5  norm          .10000E-03    1.0995        .92158E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.2672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.9532        .12213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.1189        .17902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.4982        4.5476        .18221E-03   -1.5284    
  10  Prefactor     .10000E-03    5.3627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.525        15.383        .98492E-04   -1.4895    
  12  norm          8.0504        7.2380        .14133E-03   -1.5140    
  13  Prefactor     .10005E-03    22.342        .10613       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.0479        14.124        .16328E-03   -1.5216    
  15  Prefactor     .10000E-03    13.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .20337        .46663        .92277E-04   -1.5618    
  17  Prefactor     .10000E-03    3.2309        .15846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.5492        2.6456        .12238E-03   -1.5331    
  20  Prefactor     .10000E-03    10.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     42.558        51.071        .61446E-04   -1.4402    
  22  norm          1.2131        2.3714        .18976E-03   -1.5488    
  23  norm          2.3129        1.7173        .97086E-04   -1.5404    
  24  Normalizat    .95921        .20194        .31012E-03   -.94410    
  25  Prefactor     .85119        .97587E-01    .16699E-03   -.97868    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27277e-07
Minuit parameter uncertainties:
  1  2.16857
  2  7.96273
  3  22.9189
  4  3.42951
  5  1.28861e-06
  6  4.43969e-06
  7  7.50732e-06
  8  1.12749e-05
  9  4.54795
  10  1.568e-05
  11  15.3869
  12  7.23883
  13  0.00217073
  14  14.1323
  15  3.11229e-05
  16  0.466639
  17  1.8609e-06
  18  0.000125862
  19  2.6457
  20  5.15228e-05
  21  51.1234
  22  2.37159
  23  1.7173
  24  0.2021
  25  0.0976072
Done.

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

Extracting fit parameters...

4FGL J0710.9+4733
   Spectrum: PowerLaw
261    Prefactor:  4.498e+00  4.548e+00  1.000e-04  1.000e+04 ( 1.000e-12)
262        Index:  2.670e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
263        Scale:  6.204e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  8.512e-01  9.761e-02  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  9.592e-01  2.021e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.88
Ra Dec: 107.732 47.553
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 3.53e-08 +/- 3.56e-08
Energy Flux (Fixed Index): 8.70e-06 +/- 8.79e-06

TS (Fixed Index): 1.88
Ra Dec: 107.732 47.553
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/164877/likelihoodResults_440985601_441244801_4FGL_J0710.9+4733_daily_bin778.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) = 8157.94115956
delta logL = 0.0373916644303

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8157.93401155
delta logL = 0.0445396755604

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1877       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1110       1.0000          .0000       10.000    
     3 'Normalizat'    .98183       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84485       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8157.934     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      233 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1865        180.36        .49235E-02    .45182E-04
   2  Index         2.1111        5.6630        .40131       -.41178E-04
   3  Normalizat    .98181        .96874E-01    .69371E-01    .21341E-04
   4  Prefactor     .84486        .34894E-01    .44298E-01    .33900E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.18654
  Index      = 2.11112
  Normalizat = 0.981808
  Prefactor  = 0.844859
 **********
 **   18 **HESSE 
 **********

 FCN=   8157.934     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1865        5.3887        .19694E-03   -1.5299    
   2  Index         2.1111        1.3097        .11341E-01   -.61600    
   3  Normalizat    .98181        .18856        .30688E-03   -.93642    
   4  Prefactor     .84486        .94899E-01    .16755E-03   -.98095    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89564e-09
Minuit parameter uncertainties:
  1  5.38937
  2  1.33326
  3  0.188688
  4  0.0949173
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164877': 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) = 8157.93401149
delta logL = 0.0445397300518

Extracting fit parameters...

4FGL J0710.9+4733
   Spectrum: PowerLaw
261    Prefactor:  4.187e+00  5.389e+00  1.000e-04  1.000e+04 ( 1.000e-12)
262        Index:  2.111e+00  1.333e+00  0.000e+00  1.000e+01 (-1.000e+00)
263        Scale:  6.204e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  8.449e-01  9.492e-02  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  9.818e-01  1.887e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.95
Ra Dec: 107.732 47.553
Photon Index (Free Index): 2.11 +/- 1.33
Photon Flux (Free Index): 1.78e-08 +/- 3.87e-08
Energy Flux (Free Index): 9.52e-06 +/- 1.41e-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/164877/cmap_HighResolution_440985601_441244801_4FGL_J0710.9+4733_daily_bin778.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.23e-03', comment='SUCCESS', photon_flux='3.53e-08', energy_flux2='9.52e-06', photon_flux_error='3.56e-08', dlogl='4.45e-02', energy_flux='8.70e-06', photon_flux2='1.78e-08', job_status='DONE', time_completed='2021-08-26 21:20:38.373395', photon_index_error2='1.33', photon_index2='2.11', ts='1.88', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='1.41e-05', EG='0.96', time_epoch_completed='1630038038.37', return_code='0', job_id='164877', GAL2='0.84', EG2='0.98', return_code2='0', energy_flux_error='8.79e-06', photon_flux_error2='3.87e-08', ts2='1.95', photon_index='2.67' WHERE bin_id='778' AND source_name='4FGL J0710.9+4733' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 21:20:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 164877: <4FGL_J0710.9+4733_daily_bin778> in cluster <slac> Done

Job <4FGL_J0710.9+4733_daily_bin778> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Aug 26 21:05:35 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 21:05:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 26 21:05:37 2021
Terminated at Thu Aug 26 21:20:39 2021
Results reported at Thu Aug 26 21:20:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0710.9+4733_daily_bin778 107.732 47.553 440985601 441244801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0710.9+4733 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   684.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             268.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            904 sec.

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

