/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 2 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 = 7399
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0710.4+5908_daily_bin58
RA = 107.623, Dec = 59.1352
tmin = 254361601, tmax = 254620801
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='135667', job_status='RUN', time_executed='2021-08-26 19:31:20.086797', time_epoch_executed='1630031480.09' WHERE source_name='4FGL J0710.4+5908' and cadence='daily' and bin_id='58'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/135667

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/135667/ft1_4FGL_J0710.4+5908_daily_bin58.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/135667/ft2_4FGL_J0710.4+5908_daily_bin58.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/135667/ft1_4FGL_J0710.4+5908_daily_bin58.fits outfile=/scratch/kocevski/135667/ft1_filteredMKT_4FGL_J0710.4+5908_daily_bin58.fits ra=107.623 dec=59.1352 rad=12.0 tmin=254361601.0 tmax=254620801.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.62
user 1.23
sys 1.31

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/135667/ft2_4FGL_J0710.4+5908_daily_bin58.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/135667/ft2_4FGL_J0710.4+5908_daily_bin58.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/135667/ft1_filteredMKT_4FGL_J0710.4+5908_daily_bin58.fits evtable="EVENTS" outfile="/scratch/kocevski/135667/ft1_filtered_4FGL_J0710.4+5908_daily_bin58.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.68
user 0.32
sys 1.30

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/135667/ft1_filtered_4FGL_J0710.4+5908_daily_bin58.fits" evtable="EVENTS" scfile=/scratch/kocevski/135667/ft2_4FGL_J0710.4+5908_daily_bin58.fits sctable="SC_DATA" outfile=/scratch/kocevski/135667/ltcube_254361601_254620801_4FGL_J0710.4+5908_daily_bin58.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/135667/ft2_4FGL_J0710.4+5908_daily_bin58.fits
.....................!
real 14.48
user 12.82
sys 1.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/135667/ft1_filtered_4FGL_J0710.4+5908_daily_bin58.fits evtable="EVENTS" scfile=/scratch/kocevski/135667/ft2_4FGL_J0710.4+5908_daily_bin58.fits sctable="SC_DATA" expcube=/scratch/kocevski/135667/ltcube_254361601_254620801_4FGL_J0710.4+5908_daily_bin58.fits outfile=/scratch/kocevski/135667/expmap_254361601_254620801_4FGL_J0710.4+5908_daily_bin58.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/135667/ltcube_254361601_254620801_4FGL_J0710.4+5908_daily_bin58.fits
.....................!
real 192.07
user 185.10
sys 5.91

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
Extended source G150.3+4.5 in ROI with RadialDisk spatial model.
Added 204 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0710.4+5908 @ 107.623 59.1352

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/135667/ft1_filtered_4FGL_J0710.4+5908_daily_bin58.fits scfile=/scratch/kocevski/135667/ft2_4FGL_J0710.4+5908_daily_bin58.fits outfile=/scratch/kocevski/135667/cmap_254361601_254620801_4FGL_J0710.4+5908_daily_bin58.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.623 yref=59.1352 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.65
user 0.37
sys 1.27

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/135667/ft1_filtered_4FGL_J0710.4+5908_daily_bin58.fits scfile=/scratch/kocevski/135667/ft2_4FGL_J0710.4+5908_daily_bin58.fits outfile=/scratch/kocevski/135667/cmap_HighResolution_254361601_254620801_4FGL_J0710.4+5908_daily_bin58.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.623 yref=59.1352 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.69
user 0.37
sys 1.28

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/135667/ft1_filtered_4FGL_J0710.4+5908_daily_bin58.fits evtable="EVENTS" scfile=/scratch/kocevski/135667/ft2_4FGL_J0710.4+5908_daily_bin58.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/135667/Model_4FGL_J0710.4+5908_daily_bin58.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 G150.3+4.5
adding source GAL_V02
Working on...
/scratch/kocevski/135667/ft1_filtered_4FGL_J0710.4+5908_daily_bin58.fits.....................!
real 88.58
user 85.57
sys 2.76

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/135667/ft1_filtered_4FGL_J0710.4+5908_daily_bin58.fits', '/scratch/kocevski/135667/ft2_4FGL_J0710.4+5908_daily_bin58.fits', expMap='/scratch/kocevski/135667/expmap_254361601_254620801_4FGL_J0710.4+5908_daily_bin58.fits', expCube='/scratch/kocevski/135667/ltcube_254361601_254620801_4FGL_J0710.4+5908_daily_bin58.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/135667/Model_4FGL_J0710.4+5908_daily_bin58.xml', optimizer='MINUIT')

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

4FGL J0710.4+5908
   Spectrum: PowerLaw
266    Prefactor:  2.350e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
267        Index:  1.689e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
268        Scale:  4.959e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/135667/ft1_filtered_4FGL_J0710.4+5908_daily_bin58.fits
Spacecraft file(s): /scratch/kocevski/135667/ft2_4FGL_J0710.4+5908_daily_bin58.fits
Exposure map: /scratch/kocevski/135667/expmap_254361601_254620801_4FGL_J0710.4+5908_daily_bin58.fits
Exposure cube: /scratch/kocevski/135667/ltcube_254361601_254620801_4FGL_J0710.4+5908_daily_bin58.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/135667/Model_4FGL_J0710.4+5908_daily_bin58.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) = 7554.00471052

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    58.900       1.0000         .10000E-03   10000.    
     2 'Prefactor '    39.866       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12259E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    37.752       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.6278       1.0000         .10000E-03   10000.    
     8 'norm      '    .39437E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.512       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.722       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.543       1.0000         .10000E-03   10000.    
    14 'Prefactor '    46.487       1.0000         .10000E-03   10000.    
    15 'Prefactor '    194.14       1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.335       1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.639       1.0000         .10000E-03   10000.    
    19 'norm      '    .47315       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.0720       1.0000         .10000E-03   10000.    
    22 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.9141       1.0000         .10000E-03   10000.    
    24 'Prefactor '    17.097       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.0061       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .73465       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0952       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7553.983     FROM MIGRAD    STATUS=CONVERGED     76 CALLS     2748 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     58.901        1.0025        .33536E-07   -.35227E-03
   2  Prefactor     39.864        1.0698       -.25746E-06    .18452E-02
   3  Prefactor     .10001E-03    71.593       -.92363E-05** at limit **
   4  Prefactor     .10017E-03    10.136       -.17527E-04** at limit **
   5  Prefactor     37.755        1.0613        .21271E-06   -.14474E-02
   6  Prefactor     .10002E-03    5.1072       -.82448E-05** at limit **
   7  norm          4.6261        3.8460       -.25486E-05   -.50436E-03
   8  norm          .10016E-03    4.1320        .18790E-04** at limit **
   9  Prefactor     16.511        1.0019        .21767E-07   -.84148E-04
  10  Prefactor     .10000E-03    5.8897       -.29020E-05** at limit **
  11  Prefactor     12.710        1.6252        .11598E-05   -.26665E-02
  12  Prefactor     .10000E-03    4.9823        .78495E-05** at limit **
  13  Prefactor     16.536        1.2097       -.43755E-06    .10877E-02
  14  Prefactor     46.485        1.0279       -.11252E-06    .89941E-03
  15  Prefactor     194.14        1.0066       -.37369E-07    .13757E-02
  16  norm          .10000E-03    .22971        .13406E-06** at limit **
  17  Prefactor     18.334        1.0072        .90678E-07   -.30237E-03
  18  Prefactor     22.638        1.0273       -.15887E-06    .61964E-03
  19  norm          .46673        5.6576        .49665E-05    .15770E-03
  20  Prefactor     .10013E-03    11.633        .18148E-04** at limit **
  21  norm          2.0721        2.8136        .88342E-07    .14138E-03
  22  norm          .10000E-03    1.8605       -.36140E-06** at limit **
  23  Prefactor     1.9134        2.0391       -.35192E-06    .87331E-04
  24  Prefactor     17.094        1.0300        .80877E-07   -.13485E-03
  25  Prefactor     7.0047        1.0182        .31515E-06   -.11067E-03
  26  Normalizat    .73468        .22276       -.20446E-05    .18696E-04
  27  Prefactor     1.0952        .11723        .63971E-06    .50556E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 58.9008
  Prefactor  = 39.8638
  Prefactor  = 0.000100011
  Prefactor  = 0.00010017
  Prefactor  = 37.7548
  Prefactor  = 0.000100018
  norm       = 4.62607
  norm       = 0.000100156
  Prefactor  = 16.5111
  Prefactor  = 0.000100001
  Prefactor  = 12.7098
  Prefactor  = 0.000100003
  Prefactor  = 16.5364
  Prefactor  = 46.4853
  Prefactor  = 194.136
  norm       = 0.0001
  Prefactor  = 18.3341
  Prefactor  = 22.6376
  norm       = 0.466731
  Prefactor  = 0.000100126
  norm       = 2.07215
  norm       = 0.0001
  Prefactor  = 1.91335
  Prefactor  = 17.0943
  Prefactor  = 7.00472
  Normalizat = 0.734675
  Prefactor  = 1.09517
 **********
 **   18 **HESSE 
 **********

 FCN=   7553.983     FROM HESSE     STATUS=OK           564 CALLS     3312 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     58.901        52.998        .13069E-02   -1.4172    
   2  Prefactor     39.864        35.419        .15871E-02   -1.4444    
   3  Prefactor     .10001E-03    71.010        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10017E-03    14.299        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     37.755        32.862        .16308E-02   -1.4478    
   6  Prefactor     .10002E-03    8.7253        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.6261        3.8767        .46773E-02   -1.5278    
   8  norm          .10016E-03    2.6270        .72721E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.511        15.441        .24641E-02   -1.4895    
  10  Prefactor     .10000E-03    5.8274        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.710        15.030        .28076E-02   -1.4995    
  12  Prefactor     .10000E-03    8.5112        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     16.536        21.750        .24618E-02   -1.4894    
  14  Prefactor     46.485        31.305        .14702E-02   -1.4343    
  15  Prefactor     194.14        195.47        .72478E-03   -1.2912    
  16  norm          .10000E-03    .22659        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.334        14.888        .23384E-02   -1.4851    
  18  Prefactor     22.638        23.623        .21046E-02   -1.4756    
  19  norm          .46673        2.9396        .41674E-01   -1.5571    
  20  Prefactor     .10013E-03    15.620        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.0721        2.8845        .71743E-02   -1.5420    
  22  norm          .10000E-03    1.0586        .34073E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.9134        2.1153        .75108E-02   -1.5431    
  24  Prefactor     17.094        16.872        .24215E-02   -1.4881    
  25  Prefactor     7.0047        9.7646        .37891E-02   -1.5179    
  26  Normalizat    .73468        .22205        .87355E-01   -1.0254    
  27  Prefactor     1.0952        .10899        .37772E-01   -.89621    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19017e-07
Minuit parameter uncertainties:
  1  53.0406
  2  35.4377
  3  0.00176184
  4  0.00311814
  5  32.8775
  6  0.000790504
  7  3.87687
  8  0.00128211
  9  15.4447
  10  0.000129691
  11  15.0348
  12  0.000302138
  13  21.7603
  14  31.3161
  15  196.128
  16  3.43633e-06
  17  14.8906
  18  23.6328
  19  2.34258
  20  0.00280667
  21  2.88471
  22  8.92948e-06
  23  2.11537
  24  16.8765
  25  9.76686
  26  0.222321
  27  0.109012
Done.

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

Extracting fit parameters...

4FGL J0710.4+5908
   Spectrum: PowerLaw
266    Prefactor:  1.651e+01  1.544e+01  1.000e-04  1.000e+04 ( 1.000e-14)
267        Index:  1.689e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
268        Scale:  4.959e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
660    Prefactor:  1.095e+00  1.090e-01  0.000e+00  1.000e+01 ( 1.000e+00)
661        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
662        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  7.347e-01  2.223e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.03
Ra Dec: 107.623 59.135
Photon Index (Fixed Index): 1.69 +/- 0.00
Photon Flux (Fixed Index): 1.73e-08 +/- 1.62e-08
Energy Flux (Fixed Index): 2.94e-05 +/- 2.75e-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) = 7553.98318077
delta logL = 2.43196773226e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7553.9831705
delta logL = 3.45837761415e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.590       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6831       1.0000          .0000       10.000    
     3 'Normalizat'    .73475       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0952       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6630E+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=   7553.983     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      270 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.597        19.302        .98334E-04    .90063E-04
   2  Index         1.6836        .63705        .92160E-02    .38106E-03
   3  Normalizat    .73481        .21550        .38688E-03   -.62003E-04
   4  Prefactor     1.0951        .11634        .17329E-03   -.12236E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.5969
  Index      = 1.68356
  Normalizat = 0.734812
  Prefactor  = 1.09515
 **********
 **   18 **HESSE 
 **********

 FCN=   7553.983     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.597        18.657        .39333E-05   -1.4893    
   2  Index         1.6836        .61596        .18432E-02   -.72520    
   3  Normalizat    .73481        .21547        .15475E-04   -1.0253    
   4  Prefactor     1.0951        .11638        .34657E-04   -.89622    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.6797e-11
Minuit parameter uncertainties:
  1  18.6637
  2  0.618777
  3  0.21572
  4  0.116402
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/135667': 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) = 7553.98316956
delta logL = 3.55311822204e-05

Extracting fit parameters...

4FGL J0710.4+5908
   Spectrum: PowerLaw
266    Prefactor:  1.660e+01  1.866e+01  1.000e-04  1.000e+04 ( 1.000e-14)
267        Index:  1.684e+00  6.188e-01  0.000e+00  1.000e+01 (-1.000e+00)
268        Scale:  4.959e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
660    Prefactor:  1.095e+00  1.164e-01  0.000e+00  1.000e+01 ( 1.000e+00)
661        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
662        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  7.348e-01  2.157e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.03
Ra Dec: 107.623 59.135
Photon Index (Free Index): 1.68 +/- 0.62
Photon Flux (Free Index): 1.72e-08 +/- 2.26e-08
Energy Flux (Free Index): 2.96e-05 +/- 4.21e-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/135667/cmap_HighResolution_254361601_254620801_4FGL_J0710.4+5908_daily_bin58.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.73e-08', energy_flux2='2.96e-05', photon_flux_error='1.62e-08', dlogl='3.55e-05', energy_flux='2.94e-05', photon_flux2='1.72e-08', job_status='DONE', time_completed='2021-08-26 19:44:45.335319', photon_index_error2='0.62', photon_index2='1.68', ts='6.03', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='4.21e-05', EG='0.73', time_epoch_completed='1630032285.34', return_code='0', job_id='135667', GAL2='1.10', EG2='0.73', return_code2='0', energy_flux_error='2.75e-05', photon_flux_error2='2.26e-08', ts2='6.03', photon_index='1.69' WHERE bin_id='58' AND source_name='4FGL J0710.4+5908' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 19:44:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 135667: <4FGL_J0710.4+5908_daily_bin58> in cluster <slac> Done

Job <4FGL_J0710.4+5908_daily_bin58> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Aug 26 19:30:43 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 19:30:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 26 19:30:44 2021
Terminated at Thu Aug 26 19:44:46 2021
Results reported at Thu Aug 26 19:44:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0710.4+5908_daily_bin58 107.623 59.1352 254361601 254620801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0710.4+5908 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   821.14 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             334.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            843 sec.

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

