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


Performing analysis on: 4FGL_J0710.4+5908_daily_bin1282
RA = 107.623, Dec = 59.1352
tmin = 571622401, tmax = 571881601
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='143597', job_status='RUN', time_executed='2021-08-26 19:56:24.782633', time_epoch_executed='1630032984.78' WHERE source_name='4FGL J0710.4+5908' and cadence='daily' and bin_id='1282'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/143597

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/143597/ft1_4FGL_J0710.4+5908_daily_bin1282.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/143597/ft2_4FGL_J0710.4+5908_daily_bin1282.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/143597/ft1_4FGL_J0710.4+5908_daily_bin1282.fits outfile=/scratch/kocevski/143597/ft1_filteredMKT_4FGL_J0710.4+5908_daily_bin1282.fits ra=107.623 dec=59.1352 rad=12.0 tmin=571622401.0 tmax=571881601.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 3.28
user 2.50
sys 0.76

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/143597/ft1_filtered_4FGL_J0710.4+5908_daily_bin1282.fits" evtable="EVENTS" scfile=/scratch/kocevski/143597/ft2_4FGL_J0710.4+5908_daily_bin1282.fits sctable="SC_DATA" outfile=/scratch/kocevski/143597/ltcube_571622401_571881601_4FGL_J0710.4+5908_daily_bin1282.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/143597/ft2_4FGL_J0710.4+5908_daily_bin1282.fits
.....................!
real 12.93
user 11.91
sys 0.97

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/143597/ft1_filtered_4FGL_J0710.4+5908_daily_bin1282.fits evtable="EVENTS" scfile=/scratch/kocevski/143597/ft2_4FGL_J0710.4+5908_daily_bin1282.fits sctable="SC_DATA" expcube=/scratch/kocevski/143597/ltcube_571622401_571881601_4FGL_J0710.4+5908_daily_bin1282.fits outfile=/scratch/kocevski/143597/expmap_571622401_571881601_4FGL_J0710.4+5908_daily_bin1282.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/143597/ltcube_571622401_571881601_4FGL_J0710.4+5908_daily_bin1282.fits
.....................!
real 190.64
user 185.24
sys 5.02

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/143597/ft1_filtered_4FGL_J0710.4+5908_daily_bin1282.fits scfile=/scratch/kocevski/143597/ft2_4FGL_J0710.4+5908_daily_bin1282.fits outfile=/scratch/kocevski/143597/cmap_571622401_571881601_4FGL_J0710.4+5908_daily_bin1282.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.12
user 0.38
sys 0.73

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/143597/ft1_filtered_4FGL_J0710.4+5908_daily_bin1282.fits scfile=/scratch/kocevski/143597/ft2_4FGL_J0710.4+5908_daily_bin1282.fits outfile=/scratch/kocevski/143597/cmap_HighResolution_571622401_571881601_4FGL_J0710.4+5908_daily_bin1282.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.13
user 0.37
sys 0.74

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11132E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.024       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.516       1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.146       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    21 'norm      '    10000.       1.0000         .10000E-03   10000.    
    22 'norm      '    10000.       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    25 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0221       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=   4098.559     FROM MIGRAD    STATUS=CONVERGED    135 CALLS     3379 TOTAL
                     EDM=   .79E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10476E-03    35.478         .0000    ** at limit **
   2  Prefactor     19.001        1.8476         .0000       -.18417E-02
   3  Prefactor     23.516        1.0024         .0000       -.10076E-03
   4  Prefactor     22.137        1.3416         .0000        .29524E-03
   5  Prefactor     .10044E-03    11.152         .0000    ** at limit **
   6  Prefactor     .10045E-03    6.2060         .0000    ** at limit **
   7  norm          .10000E-03    2.3735         .0000    ** at limit **
   8  norm          .10000E-03    11.197         .0000    ** at limit **
   9  Prefactor     .10207E-03    33.912         .0000    ** at limit **
  10  Prefactor     .10000E-03    10.818         .0000    ** at limit **
  11  Prefactor     .12083E-03    38.187         .0000    ** at limit **
  12  Prefactor     .10010E-03    27.139         .0000    ** at limit **
  13  Prefactor     .14544E-03    60.277         .0000    ** at limit **
  14  Prefactor     .10269E-03    34.942         .0000    ** at limit **
  15  Prefactor     .10002E-03    11.718         .0000    ** at limit **
  16  norm          .10040E-03    11.240         .0000    ** at limit **
  17  Prefactor     .12264E-03    61.356         .0000    ** at limit **
  18  Prefactor     .10005E-03    13.910         .0000    ** at limit **
  19  norm          .10021E-03    8.6064         .0000    ** at limit **
  20  Prefactor    10000.0        15.730         .0000       -.20103E-02
  21  norm         10000.0        64.561         .0000    ** at limit **
  22  norm         10000.0        65.141         .0000    ** at limit **
  23  Prefactor     .10000E-03    .73941         .0000    ** at limit **
  24  Prefactor    10000.0        57.864         .0000    ** at limit **
  25  Prefactor    10000.0        64.988         .0000    ** at limit **
  26  Normalizat    .10000E-01    .91579E-01     .0000    ** at limit **
  27  Prefactor     1.0222        .69457E-01     .0000        .15898E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104759
  Prefactor  = 19.0009
  Prefactor  = 23.5161
  Prefactor  = 22.1368
  Prefactor  = 0.000100439
  Prefactor  = 0.000100453
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000102068
  Prefactor  = 0.000100002
  Prefactor  = 0.000120834
  Prefactor  = 0.000100097
  Prefactor  = 0.000145445
  Prefactor  = 0.000102689
  Prefactor  = 0.000100025
  norm       = 0.000100397
  Prefactor  = 0.000122641
  Prefactor  = 0.000100045
  norm       = 0.000100212
  Prefactor  = 10000
  norm       = 10000
  norm       = 10000
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  Normalizat = 0.01
  Prefactor  = 1.02224
 **********
 **   18 **HESSE 
 **********

 FCN=   4098.559     FROM HESSE     STATUS=OK           522 CALLS     3901 TOTAL
                     EDM=   .38E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10476E-03    103.31        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.001        26.070        .22957E-02   -1.4836    
   3  Prefactor     23.516        22.307        .20650E-02   -1.4738    
   4  Prefactor     22.137        15.988        .21279E-02   -1.4767    
   5  Prefactor     .10044E-03    32.191        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10045E-03    13.421        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.3734        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    10.988        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10207E-03    39.869        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.813        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .12083E-03    84.815        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10010E-03    28.919        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .14544E-03    437.54        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10269E-03    102.66        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10002E-03    34.707        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10040E-03    32.374        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .12264E-03    420.49        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10005E-03    14.239        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10021E-03    13.257        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor    10000.0        1438.7        .90712E-02    1.5696    
  21  norm         10000.0        353.01        .90712E-02    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm         10000.0        300.89        .90712E-02    1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    .73894        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor    10000.0        472.83        .90712E-02    1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor    10000.0        335.49        .90712E-02    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .10000E-01    .76513E-01    .27014       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.0222        .83385E-01    .41937E-01   -.91992    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.75559e-06
Minuit parameter uncertainties:
  1  0.0444232
  2  26.0857
  3  22.3144
  4  15.9915
  5  0.00751843
  6  0.00493135
  7  3.7142e-05
  8  0.000198608
  9  0.0181743
  10  0.000293743
  11  0.0841921
  12  0.00334685
  13  0.28412
  14  0.0332848
  15  0.00184584
  16  0.00717222
  17  0.196541
  18  0.00160763
  19  0.00335504
  20  4.73485
  21  0.132069
  22  0.348116
  23  6.03477e-06
  24  0.467764
  25  0.209816
  26  1.52639e-06
  27  0.0833952
Done.

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

Extracting fit parameters...

4FGL J0710.4+5908
   Spectrum: PowerLaw
266    Prefactor:  1.021e-04  1.817e-02  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.022e+00  8.340e-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:  1.000e-02  1.526e-06  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.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.49e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/143597/likelihoodResults_571622401_571881601_4FGL_J0710.4+5908_daily_bin1282.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) = 4098.55891125
delta logL = -0.000136825002301

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4098.55877471
delta logL = -2.87923285214e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10344E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8778       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0222       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=   4098.559     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      243 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.500        .90712E-02** at limit **
   2  Index         1.8492        8.4305        .50000        .62522E-05
   3  Normalizat    .10000E-01    .59047E-04    .27015    ** at limit **
   4  Prefactor     1.0222        .22174E-02    .41925E-01   -.13903E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.84915
  Normalizat = 0.01
  Prefactor  = 1.02224
 **********
 **   18 **HESSE 
 **********

 FCN=   4098.559     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      276 TOTAL
                     EDM=   .72E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    137.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8492        5.7406        .50000       -.68177    
   3  Normalizat    .10000E-01    .74248E-03    .95133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0222        .62407E-02    .14321E-03   -.91992    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.20293e-08
Minuit parameter uncertainties:
  1  0.000669249
  2  172.705
  3  1.6573e-08
  4  0.00624075
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/143597': 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) = 4098.55877461
delta logL = -1.8002174329e-07

Extracting fit parameters...

4FGL J0710.4+5908
   Spectrum: PowerLaw
266    Prefactor:  1.000e-04  6.692e-04  1.000e-04  1.000e+04 ( 1.000e-14)
267        Index:  1.849e+00  1.727e+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:  1.022e+00  6.241e-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:  1.000e-02  1.657e-08  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/143597/cmap_HighResolution_571622401_571881601_4FGL_J0710.4+5908_daily_bin1282.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.49e-02', job_status='DONE', photon_flux_upper_limit='2.05e-07', time_completed='2021-08-26 20:07:47.000079', job_id='143597', GAL2='1.02', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630033667.0', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='-1.80e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.69' WHERE bin_id='1282' AND source_name='4FGL J0710.4+5908' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 20:07:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 143597: <4FGL_J0710.4+5908_daily_bin1282> in cluster <slac> Done

Job <4FGL_J0710.4+5908_daily_bin1282> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Aug 26 19:55:53 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 19:55:57 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:55:57 2021
Terminated at Thu Aug 26 20:07:47 2021
Results reported at Thu Aug 26 20:07:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0710.4+5908_daily_bin1282 107.623 59.1352 571622401 571881601 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 :                                   690.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             354.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   710 sec.
    Turnaround time :                            714 sec.

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

