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


Performing analysis on: 4FGL_J0710.9+4733_daily_bin672
RA = 107.732, Dec = 47.553
tmin = 413510401, tmax = 413769601
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='163317', job_status='RUN', time_executed='2021-08-26 21:03:11.844068', time_epoch_executed='1630036991.84' WHERE source_name='4FGL J0710.9+4733' and cadence='daily' and bin_id='672'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/163317

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/163317/ft1_4FGL_J0710.9+4733_daily_bin672.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/163317/ft2_4FGL_J0710.9+4733_daily_bin672.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/163317/ft1_4FGL_J0710.9+4733_daily_bin672.fits outfile=/scratch/kocevski/163317/ft1_filteredMKT_4FGL_J0710.9+4733_daily_bin672.fits ra=107.732 dec=47.553 rad=12.0 tmin=413510401.0 tmax=413769601.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 4.32
user 3.98
sys 0.33

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/163317/ft1_filtered_4FGL_J0710.9+4733_daily_bin672.fits" evtable="EVENTS" scfile=/scratch/kocevski/163317/ft2_4FGL_J0710.9+4733_daily_bin672.fits sctable="SC_DATA" outfile=/scratch/kocevski/163317/ltcube_413510401_413769601_4FGL_J0710.9+4733_daily_bin672.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/163317/ft2_4FGL_J0710.9+4733_daily_bin672.fits
.....................!
real 9.28
user 8.83
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/163317/ft1_filtered_4FGL_J0710.9+4733_daily_bin672.fits evtable="EVENTS" scfile=/scratch/kocevski/163317/ft2_4FGL_J0710.9+4733_daily_bin672.fits sctable="SC_DATA" expcube=/scratch/kocevski/163317/ltcube_413510401_413769601_4FGL_J0710.9+4733_daily_bin672.fits outfile=/scratch/kocevski/163317/expmap_413510401_413769601_4FGL_J0710.9+4733_daily_bin672.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/163317/ltcube_413510401_413769601_4FGL_J0710.9+4733_daily_bin672.fits
.....................!
real 143.55
user 140.23
sys 3.04

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/163317/ft1_filtered_4FGL_J0710.9+4733_daily_bin672.fits scfile=/scratch/kocevski/163317/ft2_4FGL_J0710.9+4733_daily_bin672.fits outfile=/scratch/kocevski/163317/cmap_413510401_413769601_4FGL_J0710.9+4733_daily_bin672.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.58
user 0.31
sys 0.25

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/163317/ft1_filtered_4FGL_J0710.9+4733_daily_bin672.fits scfile=/scratch/kocevski/163317/ft2_4FGL_J0710.9+4733_daily_bin672.fits outfile=/scratch/kocevski/163317/cmap_HighResolution_413510401_413769601_4FGL_J0710.9+4733_daily_bin672.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.58
user 0.30
sys 0.27

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/163317/ft1_filtered_4FGL_J0710.9+4733_daily_bin672.fits', '/scratch/kocevski/163317/ft2_4FGL_J0710.9+4733_daily_bin672.fits', expMap='/scratch/kocevski/163317/expmap_413510401_413769601_4FGL_J0710.9+4733_daily_bin672.fits', expCube='/scratch/kocevski/163317/ltcube_413510401_413769601_4FGL_J0710.9+4733_daily_bin672.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/163317/Model_4FGL_J0710.9+4733_daily_bin672.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/163317/ft1_filtered_4FGL_J0710.9+4733_daily_bin672.fits
Spacecraft file(s): /scratch/kocevski/163317/ft2_4FGL_J0710.9+4733_daily_bin672.fits
Exposure map: /scratch/kocevski/163317/expmap_413510401_413769601_4FGL_J0710.9+4733_daily_bin672.fits
Exposure cube: /scratch/kocevski/163317/ltcube_413510401_413769601_4FGL_J0710.9+4733_daily_bin672.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/163317/Model_4FGL_J0710.9+4733_daily_bin672.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) = 9324.52461175

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.0393       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .18040E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    14.636       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13254E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.0113       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.799       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .20948       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .41480E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .59395       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0852       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99338       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=   9324.522     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     2904 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.0399        3.1161        .35352E-02    .67014E-04
   2  Prefactor     .10000E-03    4.2139        .90712E-02** at limit **
   3  Prefactor     .10003E-03    18.462        .90712E-02** at limit **
   4  norm          .10000E-03    2.4100        .48622E-01** at limit **
   5  norm          14.636        5.4747        .26174E-02    .94551E-04
   6  Prefactor     .10004E-03    17.585        .90712E-02** at limit **
   7  norm          .10000E-03    1.4145        .90712E-02** at limit **
   8  Prefactor     .10005E-03    7.7461        .14300    ** at limit **
   9  Prefactor     .10000E-03    2.3094        .90712E-02** at limit **
  10  Prefactor     7.0028        18.378        .37876E-02    .55551E-03
  11  Prefactor     .10000E-03    6.0240        .90712E-02** at limit **
  12  norm          .10000E-03    8.9011        .90712E-02** at limit **
  13  Prefactor     .10016E-03    36.285        .90712E-02** at limit **
  14  Prefactor     15.802        14.423        .25191E-02    .98093E-04
  15  Prefactor     .10000E-03    31.350        .90712E-02** at limit **
  16  norm          .20946        .58328        .10021E-01    .36646E-02
  17  Prefactor     .10003E-03    5.9304        .10623    ** at limit **
  18  Prefactor     .10000E-03    9.0424        .90712E-02** at limit **
  19  norm          .59193        2.0495        .11649E-01    .21900E-02
  20  Prefactor     .10000E-03    2.7236        .90712E-02** at limit **
  21  Prefactor     .10001E-03    30.959        .90712E-02** at limit **
  22  norm          .10000E-03    2.1034        .90712E-02** at limit **
  23  norm          .10000E-03    .76739        .32308E-01** at limit **
  24  Normalizat    1.0850        .18194        .74550E-01    .10549E-03
  25  Prefactor     .99335        .91061E-01    .46184E-01    .13651E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.03989
  Prefactor  = 0.0001
  Prefactor  = 0.000100031
  norm       = 0.0001
  norm       = 14.6361
  Prefactor  = 0.000100038
  norm       = 0.0001
  Prefactor  = 0.000100046
  Prefactor  = 0.0001
  Prefactor  = 7.00284
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100163
  Prefactor  = 15.8017
  Prefactor  = 0.0001
  norm       = 0.209456
  Prefactor  = 0.000100028
  Prefactor  = 0.0001
  norm       = 0.591926
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.08497
  Prefactor  = 0.993347
 **********
 **   18 **HESSE 
 **********

 FCN=   9324.522     FROM HESSE     STATUS=OK           423 CALLS     3327 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.0399        3.1227        .10248E-03   -1.5141    
   2  Prefactor     .10000E-03    4.2472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10003E-03    18.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.4800        .28752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          14.636        5.4705        .10469E-03   -1.4943    
   6  Prefactor     .10004E-03    17.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.4188        .11208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10005E-03    44.329        .52316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.3239        .14321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.0028        18.252        .15151E-03   -1.5179    
  11  Prefactor     .10000E-03    6.0300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    9.0906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10016E-03    36.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.802        14.420        .10077E-03   -1.4913    
  15  Prefactor     .10000E-03    31.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .20946        .57935        .11765E-03   -1.5616    
  17  Prefactor     .10003E-03    29.445        .43196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.0960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .59193        1.9420        .23729E-03   -1.5554    
  20  Prefactor     .10000E-03    2.7281        .15563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    31.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.1496        .27301E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.5085        .16438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0850        .20632        .32992E-03   -.90236    
  25  Prefactor     .99335        .10509        .17687E-03   -.92952    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16333e-08
Minuit parameter uncertainties:
  1  3.12279
  2  9.36392e-07
  3  0.00151645
  4  3.07267e-05
  5  5.47067
  6  0.00162845
  7  7.31755e-06
  8  0.00285944
  9  2.01132e-05
  10  18.266
  11  2.6968e-05
  12  3.09199e-05
  13  0.00489923
  14  14.4227
  15  0.00017555
  16  0.579361
  17  0.00180143
  18  2.24662e-05
  19  1.94222
  20  1.98539e-05
  21  0.000880182
  22  1.43094e-05
  23  1.76198e-06
  24  0.206475
  25  0.105107
Done.

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

Extracting fit parameters...

4FGL J0710.9+4733
   Spectrum: PowerLaw
261    Prefactor:  1.000e-04  2.011e-05  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:  9.933e-01  1.051e-01  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:  1.085e+00  2.065e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 107.732 47.553
Photon Flux Upper Limit: 7.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/163317/likelihoodResults_413510401_413769601_4FGL_J0710.9+4733_daily_bin672.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): 102
logL (Free Index) = 9324.52417354
delta logL = -0.00205020825342

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9324.52212333
delta logL = 1.47338141687e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6750       1.0000          .0000       10.000    
     3 'Normalizat'    1.0850       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99334       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9324.522     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      259 TOTAL
                     EDM=   .28E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .91591E-01    .42255E-01** at limit **
   2  Index         3.2828        6.3935        .50000       -.45475E-07
   3  Normalizat    1.0850        .12434E-02    .32992E-03    .39207E-03
   4  Prefactor     .99335        .64492E-03    .17687E-03    .61244E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.28281
  Normalizat = 1.08497
  Prefactor  = 0.993347
 **********
 **   18 **HESSE 
 **********

 FCN=   9324.522     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      290 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.792        .22178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2828        6.2576        .50000       -.35058    
   3  Normalizat    1.0850        .17872E-01    .13197E-04   -.90236    
   4  Prefactor     .99335        .92699E-02    .35373E-04   -.92952    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.22202e-10
Minuit parameter uncertainties:
  1  7.5168e-05
  2  469.682
  3  0.0178723
  4  0.00926992
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/163317': 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): 102
logL (Free Index) = 9324.52212205
delta logL = 1.28051397041e-06

Extracting fit parameters...

4FGL J0710.9+4733
   Spectrum: PowerLaw
261    Prefactor:  1.000e-04  7.517e-05  1.000e-04  1.000e+04 ( 1.000e-12)
262        Index:  3.283e+00  4.697e+02  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:  9.933e-01  9.270e-03  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:  1.085e+00  1.787e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 107.732 47.553

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/163317/cmap_HighResolution_413510401_413769601_4FGL_J0710.9+4733_daily_bin672.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.84e-03', job_status='DONE', photon_flux_upper_limit='7.43e-08', time_completed='2021-08-26 21:15:13.921712', job_id='163317', GAL2='0.99', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1630037713.92', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='1.28e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='672' AND source_name='4FGL J0710.9+4733' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 21:15:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 163317: <4FGL_J0710.9+4733_daily_bin672> in cluster <slac> Done

Job <4FGL_J0710.9+4733_daily_bin672> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Aug 26 21:00:32 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 21:00:34 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:00:34 2021
Terminated at Thu Aug 26 21:15:14 2021
Results reported at Thu Aug 26 21:15:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0710.9+4733_daily_bin672 107.732 47.553 413510401 413769601 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 :                                   721.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            882 sec.

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

