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


Performing analysis on: 4FGL_J0710.4+5908_daily_bin1
RA = 107.623, Dec = 59.1352
tmin = 239587201, tmax = 239846401
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='135583', job_status='RUN', time_executed='2021-08-26 19:32:40.057960', time_epoch_executed='1630031560.06' WHERE source_name='4FGL J0710.4+5908' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/135583

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/135583/ft1_4FGL_J0710.4+5908_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/135583/ft2_4FGL_J0710.4+5908_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/135583/ft1_4FGL_J0710.4+5908_daily_bin1.fits outfile=/scratch/kocevski/135583/ft1_filteredMKT_4FGL_J0710.4+5908_daily_bin1.fits ra=107.623 dec=59.1352 rad=12.0 tmin=239587201.0 tmax=239846401.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 1.42
user 1.12
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/135583/ft2_4FGL_J0710.4+5908_daily_bin1.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/135583/ft1_filteredMKT_4FGL_J0710.4+5908_daily_bin1.fits evtable="EVENTS" outfile="/scratch/kocevski/135583/ft1_filtered_4FGL_J0710.4+5908_daily_bin1.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.60
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/135583/ft1_filtered_4FGL_J0710.4+5908_daily_bin1.fits" evtable="EVENTS" scfile=/scratch/kocevski/135583/ft2_4FGL_J0710.4+5908_daily_bin1.fits sctable="SC_DATA" outfile=/scratch/kocevski/135583/ltcube_239587201_239846401_4FGL_J0710.4+5908_daily_bin1.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/135583/ft2_4FGL_J0710.4+5908_daily_bin1.fits
.....................!
real 12.26
user 11.81
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/135583/ft1_filtered_4FGL_J0710.4+5908_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/135583/ft2_4FGL_J0710.4+5908_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/135583/ltcube_239587201_239846401_4FGL_J0710.4+5908_daily_bin1.fits outfile=/scratch/kocevski/135583/expmap_239587201_239846401_4FGL_J0710.4+5908_daily_bin1.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/135583/ltcube_239587201_239846401_4FGL_J0710.4+5908_daily_bin1.fits
.....................!
real 192.13
user 186.90
sys 4.08

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/135583/ft1_filtered_4FGL_J0710.4+5908_daily_bin1.fits scfile=/scratch/kocevski/135583/ft2_4FGL_J0710.4+5908_daily_bin1.fits outfile=/scratch/kocevski/135583/cmap_239587201_239846401_4FGL_J0710.4+5908_daily_bin1.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 0.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/135583/ft1_filtered_4FGL_J0710.4+5908_daily_bin1.fits scfile=/scratch/kocevski/135583/ft2_4FGL_J0710.4+5908_daily_bin1.fits outfile=/scratch/kocevski/135583/cmap_HighResolution_239587201_239846401_4FGL_J0710.4+5908_daily_bin1.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 0.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    76.943       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1402       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.2966       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.036       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.224       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14981E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.932       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .45260       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.0443       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.594       1.0000         .10000E-03   10000.    
    25 'Prefactor '    16.466       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .73081       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .76481       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=   6648.975     FROM MIGRAD    STATUS=CONVERGED    659 CALLS     3277 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     76.988        43.386        .17972E-04   -.10047E-04
   2  Prefactor     1.9942        91.028       -.17636E-05   -.35780E-04
   3  Prefactor     .10000E-03    12.228       -.14978E-05** at limit **
   4  Prefactor     .10000E-03    8.0576       -.44907E-06** at limit **
   5  Prefactor     .10000E-03    11.575        .26071E-05** at limit **
   6  Prefactor     .10000E-03    29.445        .14911E-04** at limit **
   7  norm          .10000E-03    2.4430       -.64677E-06** at limit **
   8  norm          7.2955        6.2417        .26254E-05   -.95780E-04
   9  Prefactor     .10000E-03    4.6548        .12238E-07** at limit **
  10  Prefactor     13.035        7.7898        .82196E-06   -.39635E-04
  11  Prefactor     11.222        17.042        .42383E-06    .48147E-06
  12  Prefactor     .10000E-03    36.062       -.17777E-04** at limit **
  13  Prefactor     11.953        22.970       -.52640E-05    .10990E-03
  14  Prefactor     .10000E-03    7.0500        .77891E-06** at limit **
  15  Prefactor     .10000E-03    58.910        .94064E-05** at limit **
  16  norm          .45241        .45557        .85446E-07    .60478E-03
  17  Prefactor     .10000E-03    3.0647        .21503E-08** at limit **
  18  Prefactor     .10000E-03    11.015       -.95973E-06** at limit **
  19  norm          3.0438        2.4631        .78490E-07   -.30592E-03
  20  Prefactor     .10000E-03    22.457       -.30136E-05** at limit **
  21  norm          .10000E-03    3.3818        .34347E-07** at limit **
  22  norm          .10000E-03    .82947        .34367E-07** at limit **
  23  Prefactor     .10000E-03    .40053        .15984E-07** at limit **
  24  Prefactor     11.594        12.630        .15920E-06   -.26125E-04
  25  Prefactor     16.467        8.8963        .45771E-08   -.53673E-04
  26  Normalizat    .73093        .16903        .29998E-06    .69434E-05
  27  Prefactor     .76475        .85933E-01   -.13187E-05    .37628E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 76.9878
  Prefactor  = 1.99416
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.29553
  Prefactor  = 0.0001
  Prefactor  = 13.0352
  Prefactor  = 11.2223
  Prefactor  = 0.000100002
  Prefactor  = 11.9529
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.452405
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.04382
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.594
  Prefactor  = 16.4674
  Normalizat = 0.730926
  Prefactor  = 0.764748
 **********
 **   18 **HESSE 
 **********

 FCN=   6648.975     FROM HESSE     STATUS=OK           486 CALLS     3763 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     76.988        43.454        .22889E-03   -1.3951    
   2  Prefactor     1.9942        91.379        .28174E-03   -1.5426    
   3  Prefactor     .10000E-03    12.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.1864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    29.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    6.6590        .24527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.2955        6.1875        .14849E-03   -1.5168    
   9  Prefactor     .10000E-03    4.6565        .17182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.035        7.7818        .11094E-03   -1.4986    
  11  Prefactor     11.222        16.986        .11958E-03   -1.5038    
  12  Prefactor     .10000E-03    36.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.953        22.940        .11597E-03   -1.5016    
  14  Prefactor     .10000E-03    7.0545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    58.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .45241        .45890        .53456E-04   -1.5573    
  17  Prefactor     .10000E-03    3.0704        .13941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.0438        2.4612        .10939E-03   -1.5359    
  20  Prefactor     .10000E-03    22.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.5222        .29240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .85528        .14496E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    .40665        .50372E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     11.594        12.608        .11765E-03   -1.5027    
  25  Prefactor     16.467        8.9216        .98702E-04   -1.4896    
  26  Normalizat    .73093        .19231        .30102E-03   -1.0268    
  27  Prefactor     .76475        .98117E-01    .15860E-03   -1.0104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.16514e-10
Minuit parameter uncertainties:
  1  43.4716
  2  27.0415
  3  1.31465e-05
  4  2.07444e-05
  5  2.28101e-06
  6  2.38735e-05
  7  5.52067e-05
  8  6.18805
  9  8.03631e-06
  10  7.78238
  11  16.9936
  12  0.000574365
  13  22.9569
  14  3.20225e-06
  15  1.58279e-05
  16  0.458899
  17  1.77435e-07
  18  9.12405e-06
  19  2.46126
  20  3.44973e-05
  21  8.22635e-06
  22  1.65154e-06
  23  7.23429e-07
  24  12.6105
  25  8.92233
  26  0.192483
  27  0.0981389
Done.

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

Extracting fit parameters...

4FGL J0710.4+5908
   Spectrum: PowerLaw
266    Prefactor:  1.000e-04  8.036e-06  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:  7.647e-01  9.814e-02  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.309e-01  1.925e-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: 2.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/135583/likelihoodResults_239587201_239846401_4FGL_J0710.4+5908_daily_bin1.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) = 6648.97603243
delta logL = -0.00101848875147

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6648.97501373
delta logL = 2.09695826925e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.6631       1.0000          .0000       10.000    
     3 'Normalizat'    .73097       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76472       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=   6648.975     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      245 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10070E-03    27.252        .17610E-02** at limit **
   2  Index         1.6227        6.2098        .50000        .34094E-04
   3  Normalizat    .73093        .10273E-01    .30102E-03    .71077E-04
   4  Prefactor     .76475        .55732E-02    .15860E-03    .15840E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100696
  Index      = 1.62265
  Normalizat = 0.730928
  Prefactor  = 0.764747
 **********
 **   18 **HESSE 
 **********

 FCN=   6648.975     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10070E-03    128.39        .35220E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6227        7.8751        .50000       -.74160    
   3  Normalizat    .73093        .22839E-01    .12041E-04   -1.0268    
   4  Prefactor     .76475        .12389E-01    .31721E-04   -1.0104    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.19913e-08
Minuit parameter uncertainties:
  1  0.0189492
  2  219.163
  3  0.0228394
  4  0.0123887
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/135583': 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) = 6648.97501335
delta logL = 5.91229763813e-07

Extracting fit parameters...

4FGL J0710.4+5908
   Spectrum: PowerLaw
266    Prefactor:  1.007e-04  1.895e-02  1.000e-04  1.000e+04 ( 1.000e-14)
267        Index:  1.623e+00  2.192e+02  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:  7.647e-01  1.239e-02  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.309e-01  2.284e-02  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/135583/cmap_HighResolution_239587201_239846401_4FGL_J0710.4+5908_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.00e-03', job_status='DONE', photon_flux_upper_limit='2.74e-08', time_completed='2021-08-26 19:47:01.756600', job_id='135583', GAL2='0.76', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1630032421.76', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='5.91e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.69' WHERE bin_id='1' AND source_name='4FGL J0710.4+5908' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 19:47:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 135583: <4FGL_J0710.4+5908_daily_bin1> in cluster <slac> Done

Job <4FGL_J0710.4+5908_daily_bin1> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Aug 26 19:30:37 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 19:30:38 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:38 2021
Terminated at Thu Aug 26 19:47:04 2021
Results reported at Thu Aug 26 19:47:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0710.4+5908_daily_bin1 107.623 59.1352 239587201 239846401 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 :                                   861.00 sec.
    Max Memory :                                 1243 MB
    Average Memory :                             310.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   984 sec.
    Turnaround time :                            987 sec.

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

