/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 0 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 = 7589
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0710.9+4733_daily_bin437
RA = 107.732, Dec = 47.553
tmin = 352598401, tmax = 352857601
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='160384', job_status='RUN', time_executed='2021-08-26 20:51:17.402745', time_epoch_executed='1630036277.4' WHERE source_name='4FGL J0710.9+4733' and cadence='daily' and bin_id='437'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/160384

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/160384/ft1_4FGL_J0710.9+4733_daily_bin437.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/160384/ft2_4FGL_J0710.9+4733_daily_bin437.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/160384/ft1_4FGL_J0710.9+4733_daily_bin437.fits outfile=/scratch/kocevski/160384/ft1_filteredMKT_4FGL_J0710.9+4733_daily_bin437.fits ra=107.732 dec=47.553 rad=12.0 tmin=352598401.0 tmax=352857601.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.92
user 3.88
sys 1.01

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/160384/ft2_4FGL_J0710.9+4733_daily_bin437.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/160384/ft1_filteredMKT_4FGL_J0710.9+4733_daily_bin437.fits evtable="EVENTS" outfile="/scratch/kocevski/160384/ft1_filtered_4FGL_J0710.9+4733_daily_bin437.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 1.28
user 0.33
sys 0.90

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/160384/ft1_filtered_4FGL_J0710.9+4733_daily_bin437.fits" evtable="EVENTS" scfile=/scratch/kocevski/160384/ft2_4FGL_J0710.9+4733_daily_bin437.fits sctable="SC_DATA" outfile=/scratch/kocevski/160384/ltcube_352598401_352857601_4FGL_J0710.9+4733_daily_bin437.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/160384/ft2_4FGL_J0710.9+4733_daily_bin437.fits
.....................!
real 12.71
user 11.50
sys 1.16

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/160384/ft1_filtered_4FGL_J0710.9+4733_daily_bin437.fits evtable="EVENTS" scfile=/scratch/kocevski/160384/ft2_4FGL_J0710.9+4733_daily_bin437.fits sctable="SC_DATA" expcube=/scratch/kocevski/160384/ltcube_352598401_352857601_4FGL_J0710.9+4733_daily_bin437.fits outfile=/scratch/kocevski/160384/expmap_352598401_352857601_4FGL_J0710.9+4733_daily_bin437.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/160384/ltcube_352598401_352857601_4FGL_J0710.9+4733_daily_bin437.fits
.....................!
real 191.85
user 184.99
sys 6.40

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/160384/ft1_filtered_4FGL_J0710.9+4733_daily_bin437.fits scfile=/scratch/kocevski/160384/ft2_4FGL_J0710.9+4733_daily_bin437.fits outfile=/scratch/kocevski/160384/cmap_352598401_352857601_4FGL_J0710.9+4733_daily_bin437.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 1.28
user 0.37
sys 0.89

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/160384/ft1_filtered_4FGL_J0710.9+4733_daily_bin437.fits scfile=/scratch/kocevski/160384/ft2_4FGL_J0710.9+4733_daily_bin437.fits outfile=/scratch/kocevski/160384/cmap_HighResolution_352598401_352857601_4FGL_J0710.9+4733_daily_bin437.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 1.42
user 0.38
sys 0.93

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6448       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.2187       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.9830       1.0000         .10000E-03   10000.    
     5 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .45677E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.5671       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10385E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.3287       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.9628       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.9475       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.829       1.0000         .10000E-03   10000.    
    22 'norm      '    1.0817       1.0000         .10000E-03   10000.    
    23 'norm      '    2.4279       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .88893       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0840       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=   9257.294     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     2937 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6449        2.3287        .37857E-07    .31656E-05
   2  Prefactor     6.2188        6.9766        .73493E-07   -.13841E-04
   3  Prefactor     .10000E-03    28.599       -.19652E-05** at limit **
   4  norm          1.9825        1.0190        .71767E-06   -.12032E-02
   5  norm          .10000E-03    2.8789        .16521E-06** at limit **
   6  Prefactor     .10000E-03    93.459       -.52282E-04** at limit **
   7  norm          .10000E-03    2.7121        .69433E-07** at limit **
   8  Prefactor     .10000E-03    8.2654        .74663E-07** at limit **
   9  Prefactor     8.5667        5.3028       -.13415E-06   -.40516E-03
  10  Prefactor     .10000E-03    35.030        .51215E-06** at limit **
  11  Prefactor     .10000E-03    19.871        .23357E-05** at limit **
  12  norm          2.3289        5.9479        .18949E-06   -.13130E-04
  13  Prefactor     7.9634        17.727       -.16935E-05   -.43109E-03
  14  Prefactor     .10000E-03    5.0456        .12605E-06** at limit **
  15  Prefactor     .10000E-03    10.945       -.81855E-06** at limit **
  16  norm          .10000E-03    .20732        .17566E-06** at limit **
  17  Prefactor     .10000E-03    7.3096        .71806E-06** at limit **
  18  Prefactor     .10000E-03    6.5150       -.56601E-06** at limit **
  19  norm          5.9482        2.9868       -.13047E-06   -.10297E-02
  20  Prefactor     .10000E-03    2.9018       -.84338E-07** at limit **
  21  Prefactor     23.828        37.506        .84172E-06    .11363E-04
  22  norm          1.0818        2.8457        .10849E-06   -.69959E-04
  23  norm          2.4280        1.8357       -.66545E-08   -.31215E-03
  24  Normalizat    .88889        .18080       -.42821E-06   -.42444E-03
  25  Prefactor     1.0840        .94792E-01   -.38633E-06   -.85757E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.64489
  Prefactor  = 6.21876
  Prefactor  = 0.000100003
  norm       = 1.9825
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.56666
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.32885
  Prefactor  = 7.96342
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.94818
  Prefactor  = 0.0001
  Prefactor  = 23.8276
  norm       = 1.08181
  norm       = 2.42802
  Normalizat = 0.888888
  Prefactor  = 1.08397
 **********
 **   18 **HESSE 
 **********

 FCN=   9257.294     FROM HESSE     STATUS=OK           429 CALLS     3366 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6449        2.3298        .11370E-03   -1.5326    
   2  Prefactor     6.2188        6.9863        .16098E-03   -1.5209    
   3  Prefactor     .10000E-03    28.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.9825        4.1409        .13537E-02   -1.5426    
   5  norm          .10000E-03    3.0050        .31861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    92.048        .55451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.7487        .15455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.2884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.5667        5.3008        .13695E-03   -1.5123    
  10  Prefactor     .10000E-03    36.167        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.3289        5.9308        .26875E-03   -1.5403    
  13  Prefactor     7.9634        17.813        .14209E-03   -1.5144    
  14  Prefactor     .10000E-03    5.0651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .25691        .85201E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.3714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.5368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.9482        2.9877        .11384E-03   -1.5220    
  20  Prefactor     .10000E-03    2.9097        .16001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     23.828        37.590        .82059E-04   -1.4731    
  22  norm          1.0818        2.7852        .24996E-03   -1.5500    
  23  norm          2.4280        1.8182        .10738E-03   -1.5396    
  24  Normalizat    .88889        .20384        .34741E-03   -.96852    
  25  Prefactor     1.0840        .10762        .17130E-03   -.89981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47074e-09
Minuit parameter uncertainties:
  1  2.32987
  2  6.98719
  3  0.000556743
  4  4.14153
  5  4.45565e-05
  6  0.000712903
  7  1.10319e-05
  8  1.60498e-05
  9  5.30111
  10  6.78494e-05
  11  0.000147901
  12  5.93229
  13  17.8249
  14  1.37973e-05
  15  3.35572e-05
  16  8.06347e-06
  17  3.40855e-05
  18  1.93164e-05
  19  2.98774
  20  1.95439e-05
  21  37.6274
  22  2.78556
  23  1.81821
  24  0.204015
  25  0.107642
Done.

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

Extracting fit parameters...

4FGL J0710.9+4733
   Spectrum: PowerLaw
261    Prefactor:  8.567e+00  5.301e+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:  1.084e+00  1.076e-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:  8.889e-01  2.040e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.27
Ra Dec: 107.732 47.553
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 6.72e-08 +/- 4.15e-08
Energy Flux (Fixed Index): 1.66e-05 +/- 1.02e-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) = 9257.08396075
delta logL = 0.210043137133

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9257.07650046
delta logL = 0.217503427057

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.5423       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2367       1.0000          .0000       10.000    
     3 'Normalizat'    .91673       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0758       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=   9257.076     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      299 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.5395        6.7532        .12973E-03    .15423E-03
   2  Index         2.2363        .65750        .99622E-02    .42450E-04
   3  Normalizat    .91647        .19920        .34271E-03    .71985E-04
   4  Prefactor     1.0759        .10550        .17189E-03    .13805E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.53949
  Index      = 2.23628
  Normalizat = 0.916468
  Prefactor  = 1.07594
 **********
 **   18 **HESSE 
 **********

 FCN=   9257.076     FROM HESSE     STATUS=OK            23 CALLS      322 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.5395        6.8047        .51892E-05   -1.5090    
   2  Index         2.2363        .66192        .39849E-03   -.58565    
   3  Normalizat    .91647        .19936        .13708E-04   -.95884    
   4  Prefactor     1.0759        .10555        .34378E-04   -.90239    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.08198e-11
Minuit parameter uncertainties:
  1  6.80527
  2  0.664734
  3  0.199522
  4  0.105568
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/160384': 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) = 9257.07649893
delta logL = 0.217504957336

Extracting fit parameters...

4FGL J0710.9+4733
   Spectrum: PowerLaw
261    Prefactor:  9.539e+00  6.805e+00  1.000e-04  1.000e+04 ( 1.000e-12)
262        Index:  2.236e+00  6.647e-01  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:  1.076e+00  1.056e-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:  9.165e-01  1.995e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.65
Ra Dec: 107.732 47.553
Photon Index (Free Index): 2.24 +/- 0.66
Photon Flux (Free Index): 4.57e-08 +/- 4.90e-08
Energy Flux (Free Index): 1.92e-05 +/- 1.51e-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/160384/cmap_HighResolution_352598401_352857601_4FGL_J0710.9+4733_daily_bin437.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.72e-08', energy_flux2='1.92e-05', photon_flux_error='4.15e-08', dlogl='2.18e-01', energy_flux='1.66e-05', photon_flux2='4.57e-08', job_status='DONE', time_completed='2021-08-26 21:05:31.225140', photon_index_error2='0.66', photon_index2='2.24', ts='6.27', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='1.51e-05', EG='0.89', time_epoch_completed='1630037131.23', return_code='0', job_id='160384', GAL2='1.08', EG2='0.92', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='4.90e-08', ts2='6.65', photon_index='2.67' WHERE bin_id='437' AND source_name='4FGL J0710.9+4733' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 21:05:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 160384: <4FGL_J0710.9+4733_daily_bin437> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0710.9+4733_daily_bin437 107.732 47.553 352598401 352857601 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 :                                   862.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             364.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            885 sec.

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

