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


Performing analysis on: 4FGL_J0710.4+5908_daily_bin717
RA = 107.623, Dec = 59.1352
tmin = 425174401, tmax = 425433601
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='140387', job_status='RUN', time_executed='2021-08-26 19:46:43.746508', time_epoch_executed='1630032403.75' WHERE source_name='4FGL J0710.4+5908' and cadence='daily' and bin_id='717'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/140387

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/140387/ft1_4FGL_J0710.4+5908_daily_bin717.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/140387/ft2_4FGL_J0710.4+5908_daily_bin717.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/140387/ft1_4FGL_J0710.4+5908_daily_bin717.fits outfile=/scratch/kocevski/140387/ft1_filteredMKT_4FGL_J0710.4+5908_daily_bin717.fits ra=107.623 dec=59.1352 rad=12.0 tmin=425174401.0 tmax=425433601.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 8.10
user 4.99
sys 3.07

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/140387/ft2_4FGL_J0710.4+5908_daily_bin717.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/140387/ft1_filteredMKT_4FGL_J0710.4+5908_daily_bin717.fits evtable="EVENTS" outfile="/scratch/kocevski/140387/ft1_filtered_4FGL_J0710.4+5908_daily_bin717.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 3.41
user 0.34
sys 3.06

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/140387/ft1_filtered_4FGL_J0710.4+5908_daily_bin717.fits" evtable="EVENTS" scfile=/scratch/kocevski/140387/ft2_4FGL_J0710.4+5908_daily_bin717.fits sctable="SC_DATA" outfile=/scratch/kocevski/140387/ltcube_425174401_425433601_4FGL_J0710.4+5908_daily_bin717.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/140387/ft2_4FGL_J0710.4+5908_daily_bin717.fits
.....................!
real 15.38
user 11.74
sys 3.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/140387/ft1_filtered_4FGL_J0710.4+5908_daily_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/140387/ft2_4FGL_J0710.4+5908_daily_bin717.fits sctable="SC_DATA" expcube=/scratch/kocevski/140387/ltcube_425174401_425433601_4FGL_J0710.4+5908_daily_bin717.fits outfile=/scratch/kocevski/140387/expmap_425174401_425433601_4FGL_J0710.4+5908_daily_bin717.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/140387/ltcube_425174401_425433601_4FGL_J0710.4+5908_daily_bin717.fits
.....................!
real 195.43
user 186.56
sys 8.51

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/140387/ft1_filtered_4FGL_J0710.4+5908_daily_bin717.fits scfile=/scratch/kocevski/140387/ft2_4FGL_J0710.4+5908_daily_bin717.fits outfile=/scratch/kocevski/140387/cmap_425174401_425433601_4FGL_J0710.4+5908_daily_bin717.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 3.72
user 0.37
sys 2.92

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/140387/ft1_filtered_4FGL_J0710.4+5908_daily_bin717.fits scfile=/scratch/kocevski/140387/ft2_4FGL_J0710.4+5908_daily_bin717.fits outfile=/scratch/kocevski/140387/cmap_HighResolution_425174401_425433601_4FGL_J0710.4+5908_daily_bin717.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 3.42
user 0.38
sys 2.94

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/140387/ft1_filtered_4FGL_J0710.4+5908_daily_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/140387/ft2_4FGL_J0710.4+5908_daily_bin717.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/140387/Model_4FGL_J0710.4+5908_daily_bin717.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/140387/ft1_filtered_4FGL_J0710.4+5908_daily_bin717.fits.....................!
real 78.30
user 70.75
sys 4.70

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/140387/ft1_filtered_4FGL_J0710.4+5908_daily_bin717.fits', '/scratch/kocevski/140387/ft2_4FGL_J0710.4+5908_daily_bin717.fits', expMap='/scratch/kocevski/140387/expmap_425174401_425433601_4FGL_J0710.4+5908_daily_bin717.fits', expCube='/scratch/kocevski/140387/ltcube_425174401_425433601_4FGL_J0710.4+5908_daily_bin717.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/140387/Model_4FGL_J0710.4+5908_daily_bin717.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/140387/ft1_filtered_4FGL_J0710.4+5908_daily_bin717.fits
Spacecraft file(s): /scratch/kocevski/140387/ft2_4FGL_J0710.4+5908_daily_bin717.fits
Exposure map: /scratch/kocevski/140387/expmap_425174401_425433601_4FGL_J0710.4+5908_daily_bin717.fits
Exposure cube: /scratch/kocevski/140387/ltcube_425174401_425433601_4FGL_J0710.4+5908_daily_bin717.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/140387/Model_4FGL_J0710.4+5908_daily_bin717.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) = 6175.95466763

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    73.986       1.0000         .10000E-03   10000.    
     2 'Prefactor '    62.287       1.0000         .10000E-03   10000.    
     3 'Prefactor '    42.049       1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.750       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.1925       1.0000         .10000E-03   10000.    
     7 'norm      '    17.447       1.0000         .10000E-03   10000.    
     8 'norm      '    1.3309       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8902       1.0000         .10000E-03   10000.    
    11 'Prefactor '    30.062       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13688E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    115.03       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    34.844       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.1289       1.0000         .10000E-03   10000.    
    19 'norm      '    4.7402       1.0000         .10000E-03   10000.    
    20 'Prefactor '    96.948       1.0000         .10000E-03   10000.    
    21 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.5404       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.6442       1.0000         .10000E-03   10000.    
    24 'Prefactor '    35.304       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.8841       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .43567       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1160       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.

 FCN=   6175.929     FROM MIGRAD    STATUS=CONVERGED    660 CALLS     3343 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     73.984        45.825        .30683E-06    .15037E-04
   2  Prefactor     62.280        38.218        .65887E-06    .33723E-04
   3  Prefactor     42.044        30.697        .31542E-06    .26095E-04
   4  Prefactor     27.749        13.862        .10510E-07    .19572E-04
   5  Prefactor     .10000E-03    24.504        .63900E-06** at limit **
   6  Prefactor     5.1870        53.222        .10855E-05    .92657E-05
   7  norm          17.443        7.1244       -.32836E-07    .95770E-04
   8  norm          1.3387        4.5900       -.10502E-05    .58593E-04
   9  Prefactor     .10000E-03    23.952       -.48912E-06** at limit **
  10  Prefactor     1.8787        6.2667        .95796E-05   -.35371E-03
  11  Prefactor     30.034        22.705        .13369E-06    .17003E-03
  12  Prefactor     .10000E-03    14.992        .10532E-06** at limit **
  13  Prefactor     .10000E-03    21.673        .30529E-06** at limit **
  14  Prefactor     .10000E-03    206.39       -.94399E-05** at limit **
  15  Prefactor     115.07        152.75       -.38502E-05   -.10951E-04
  16  norm          .10000E-03    .26555        .39135E-08** at limit **
  17  Prefactor     34.788        21.661        .18639E-05    .50162E-03
  18  Prefactor     6.9762        65.275        .17556E-04    .69857E-04
  19  norm          4.7404        4.4840       -.74243E-07   -.18040E-04
  20  Prefactor     96.936        58.435        .93939E-06    .32096E-04
  21  norm          .10000E-03    3.9704        .16206E-07** at limit **
  22  norm          1.5405        2.2478        .61568E-07    .16163E-04
  23  Prefactor     1.6487        2.4148       -.13317E-05   -.98330E-03
  24  Prefactor     35.304        22.798       -.59164E-07    .28286E-04
  25  Prefactor     3.8811        10.281        .49137E-06    .32692E-04
  26  Normalizat    .43584        .26285       -.22242E-05    .90043E-04
  27  Prefactor     1.1159        .13040        .85665E-07    .34198E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 73.9841
  Prefactor  = 62.2796
  Prefactor  = 42.0438
  Prefactor  = 27.7489
  Prefactor  = 0.0001
  Prefactor  = 5.18699
  norm       = 17.4431
  norm       = 1.33872
  Prefactor  = 0.0001
  Prefactor  = 1.87873
  Prefactor  = 30.0343
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 115.067
  norm       = 0.0001
  Prefactor  = 34.7883
  Prefactor  = 6.97622
  norm       = 4.74042
  Prefactor  = 96.9362
  norm       = 0.0001
  norm       = 1.54046
  Prefactor  = 1.64873
  Prefactor  = 35.304
  Prefactor  = 3.88105
  Normalizat = 0.435842
  Prefactor  = 1.11592
 **********
 **   18 **HESSE 
 **********

 FCN=   6175.929     FROM HESSE     STATUS=OK           488 CALLS     3831 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     73.984        45.893        .46677E-04   -1.3986    
   2  Prefactor     62.280        38.109        .50843E-04   -1.4128    
   3  Prefactor     42.044        30.620        .61820E-04   -1.4410    
   4  Prefactor     27.749        13.864        .76051E-04   -1.4654    
   5  Prefactor     .10000E-03    24.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.1870        53.000        .17641E-03   -1.5252    
   7  norm          17.443        7.0931        .95888E-04   -1.4872    
   8  norm          1.3387        4.5447        .28989E-03   -1.5477    
   9  Prefactor     .10000E-03    24.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.8787        6.3043        .15133E-02   -1.5434    
  11  Prefactor     30.034        22.662        .73074E-04   -1.4611    
  12  Prefactor     .10000E-03    15.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    21.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    213.64        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     115.07        152.39        .18756E-03   -1.3558    
  16  norm          .10000E-03    .26710        .39534E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     34.788        21.758        .67889E-04   -1.4528    
  18  Prefactor     6.9762        65.642        .15024E-03   -1.5180    
  19  norm          4.7404        4.4651        .15205E-03   -1.5272    
  20  Prefactor     96.936        58.381        .40824E-04   -1.3736    
  21  norm          .10000E-03    4.0103        .15255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.5405        2.2107        .13770E-03   -1.5460    
  23  Prefactor     1.6487        2.3985        .12378E-03   -1.5451    
  24  Prefactor     35.304        22.685        .67446E-04   -1.4519    
  25  Prefactor     3.8811        10.190        .20474E-03   -1.5314    
  26  Normalizat    .43584        .25770        .48707E-03   -1.1549    
  27  Prefactor     1.1159        .13313        .16848E-03   -.88959    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37273e-09
Minuit parameter uncertainties:
  1  45.9146
  2  38.1234
  3  30.6316
  4  13.8654
  5  6.32231e-05
  6  33.1985
  7  7.09344
  8  4.54589
  9  2.52591e-05
  10  6.30654
  11  22.6682
  12  2.38004e-05
  13  3.09566e-05
  14  7.2774e-05
  15  152.913
  16  2.8653e-09
  17  21.7632
  18  42.8604
  19  4.46538
  20  58.4154
  21  6.73689e-07
  22  2.21079
  23  2.3986
  24  22.6904
  25  10.1947
  26  0.258405
  27  0.133173
Done.

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

Extracting fit parameters...

4FGL J0710.4+5908
   Spectrum: PowerLaw
266    Prefactor:  1.000e-04  2.526e-05  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.116e+00  1.332e-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:  4.358e-01  2.584e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 107.623 59.135
Photon Flux Upper Limit: 6.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/140387/likelihoodResults_425174401_425433601_4FGL_J0710.4+5908_daily_bin717.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) = 6175.92963557
delta logL = -0.000197475144887

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6175.9294384
delta logL = -3.10749783239e-07

Fit tolerance = 1e-08

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

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

 FCN=   6175.929     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      235 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.3483        .90712E-02** at limit **
   2  Index         1.7490        7.0390        .50000        .12176E-04
   3  Normalizat    .43584        .25329E-02    .10990       -.50109E-05
   4  Prefactor     1.1159        .13669E-02    .37011E-01   -.21859E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.74903
  Normalizat = 0.435842
  Prefactor  = 1.11592
 **********
 **   18 **HESSE 
 **********

 FCN=   6175.929     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      266 TOTAL
                     EDM=   .58E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    55.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7490        5.6229        .50000       -.70784    
   3  Normalizat    .43584        .90106E-02    .48706E-03   -1.1549    
   4  Prefactor     1.1159        .48774E-02    .16848E-03   -.88959    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.83072e-08
Minuit parameter uncertainties:
  1  0.000312011
  2  73.1656
  3  0.00901062
  4  0.00487739
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/140387': 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) = 6175.92943825
delta logL = -1.60908712132e-07

Extracting fit parameters...

4FGL J0710.4+5908
   Spectrum: PowerLaw
266    Prefactor:  1.000e-04  3.120e-04  1.000e-04  1.000e+04 ( 1.000e-14)
267        Index:  1.749e+00  7.317e+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.116e+00  4.877e-03  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:  4.358e-01  9.011e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 107.623 59.135

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/140387/cmap_HighResolution_425174401_425433601_4FGL_J0710.4+5908_daily_bin717.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.53e-03', job_status='DONE', photon_flux_upper_limit='6.21e-08', time_completed='2021-08-26 20:01:53.150296', job_id='140387', GAL2='1.12', fit_tolerance='1e-08', EG2='0.44', EG='0.44', time_epoch_completed='1630033313.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='-1.61e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.69' WHERE bin_id='717' AND source_name='4FGL J0710.4+5908' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 20:01:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0195>
Subject: Job 140387: <4FGL_J0710.4+5908_daily_bin717> in cluster <slac> Done

Job <4FGL_J0710.4+5908_daily_bin717> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Thu Aug 26 19:45:44 2021
Job was executed on host(s) <bullet0195>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 19:45:45 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:45:45 2021
Terminated at Thu Aug 26 20:01:54 2021
Results reported at Thu Aug 26 20:01:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0710.4+5908_daily_bin717 107.623 59.1352 425174401 425433601 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 :                                   947.09 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             316.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            970 sec.

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

