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


Performing analysis on: 4FGL_J0710.4+5908_daily_bin1214
RA = 107.623, Dec = 59.1352
tmin = 553996801, tmax = 554256001
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='143491', job_status='RUN', time_executed='2021-08-26 19:58:53.881231', time_epoch_executed='1630033133.88' WHERE source_name='4FGL J0710.4+5908' and cadence='daily' and bin_id='1214'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/143491

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/143491/ft1_4FGL_J0710.4+5908_daily_bin1214.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/143491/ft2_4FGL_J0710.4+5908_daily_bin1214.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/143491/ft1_4FGL_J0710.4+5908_daily_bin1214.fits outfile=/scratch/kocevski/143491/ft1_filteredMKT_4FGL_J0710.4+5908_daily_bin1214.fits ra=107.623 dec=59.1352 rad=12.0 tmin=553996801.0 tmax=554256001.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.94
user 2.43
sys 0.42

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/143491/ft1_filtered_4FGL_J0710.4+5908_daily_bin1214.fits" evtable="EVENTS" scfile=/scratch/kocevski/143491/ft2_4FGL_J0710.4+5908_daily_bin1214.fits sctable="SC_DATA" outfile=/scratch/kocevski/143491/ltcube_553996801_554256001_4FGL_J0710.4+5908_daily_bin1214.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/143491/ft2_4FGL_J0710.4+5908_daily_bin1214.fits
.....................!
real 13.02
user 12.40
sys 0.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/143491/ft1_filtered_4FGL_J0710.4+5908_daily_bin1214.fits evtable="EVENTS" scfile=/scratch/kocevski/143491/ft2_4FGL_J0710.4+5908_daily_bin1214.fits sctable="SC_DATA" expcube=/scratch/kocevski/143491/ltcube_553996801_554256001_4FGL_J0710.4+5908_daily_bin1214.fits outfile=/scratch/kocevski/143491/expmap_553996801_554256001_4FGL_J0710.4+5908_daily_bin1214.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/143491/ltcube_553996801_554256001_4FGL_J0710.4+5908_daily_bin1214.fits
.....................!
real 190.42
user 185.24
sys 4.30

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/143491/ft1_filtered_4FGL_J0710.4+5908_daily_bin1214.fits scfile=/scratch/kocevski/143491/ft2_4FGL_J0710.4+5908_daily_bin1214.fits outfile=/scratch/kocevski/143491/cmap_553996801_554256001_4FGL_J0710.4+5908_daily_bin1214.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.77
user 0.38
sys 0.37

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/143491/ft1_filtered_4FGL_J0710.4+5908_daily_bin1214.fits scfile=/scratch/kocevski/143491/ft2_4FGL_J0710.4+5908_daily_bin1214.fits outfile=/scratch/kocevski/143491/cmap_HighResolution_553996801_554256001_4FGL_J0710.4+5908_daily_bin1214.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.76
user 0.39
sys 0.36

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.0687       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    34.367       1.0000         .10000E-03   10000.    
     7 'norm      '    10000.       1.0000         .10000E-03   10000.    
     8 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.042       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10413E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .13731       1.0000         .10000E-03   10000.    
    25 'Prefactor '    13.575       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1148       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=   1622.069     FROM MIGRAD    STATUS=CONVERGED    703 CALLS     3930 TOTAL
                     EDM=   .60E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1307.8       -.53920E-06** at limit **
   2  Prefactor     5.0657        32.921        .38656E-06    .20790E-04
   3  Prefactor     .10000E-03    25.335       -.13635E-07** at limit **
   4  Prefactor    10000.0        605.09       -.69112E-06** at limit **
   5  Prefactor     .10000E-03    134.90       -.29672E-06** at limit **
   6  Prefactor     34.372        79.480        .14170E-06    .48709E-05
   7  norm         10000.0        1157.4        .33049E-06** at limit **
   8  norm         10000.0        8174.4        .23057E-05** at limit **
   9  Prefactor     .10000E-03    19.228       -.95285E-08** at limit **
  10  Prefactor    10000.0        840.83       -.39094E-06** at limit **
  11  Prefactor     .10000E-03    364.78        .27070E-06** at limit **
  12  Prefactor     .10000E-03    19.286       -.52523E-08** at limit **
  13  Prefactor     .10000E-03    29.778        .46733E-07** at limit **
  14  Prefactor     .10000E-03    107.60        .26955E-06** at limit **
  15  Prefactor     .10000E-03    83.782       -.18426E-06** at limit **
  16  norm          .10000E-03    .73807       -.12088E-07** at limit **
  17  Prefactor     .10000E-03    30.601       -.83899E-07** at limit **
  18  Prefactor     22.036        37.339       -.34132E-06    .41429E-04
  19  norm          .10000E-03    1.1640       -.58622E-07** at limit **
  20  Prefactor     .10000E-03    36.683       -.10011E-06** at limit **
  21  norm          .10000E-03    9.3367       -.15346E-06** at limit **
  22  norm          .10000E-03    4.6943       -.92844E-07** at limit **
  23  Prefactor     .10000E-03    3.3504       -.43687E-05** at limit **
  24  Prefactor     .10013E-03    6679.1       -.31529E-04** at limit **
  25  Prefactor     13.585        15.159       -.13336E-06    .79683E-05
  26  Normalizat    .10000E-01    .12535       -.17699E-04** at limit **
  27  Prefactor     1.1150        .14572        .22238E-07    .13863E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 5.06574
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 34.3722
  norm       = 10000
  norm       = 10000
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.0356
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100129
  Prefactor  = 13.5848
  Normalizat = 0.01
  Prefactor  = 1.11499
 **********
 **   18 **HESSE 
 **********

 FCN=   1622.069     FROM HESSE     STATUS=OK           482 CALLS     4412 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1307.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.0657        32.934        .17859E-03   -1.5258    
   3  Prefactor     .10000E-03    25.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor    10000.0        604.80        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    134.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     34.372        79.489        .68357E-04   -1.4535    
   7  norm         10000.0        1157.5        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm         10000.0        8173.7        .19734E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    19.229        .17255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor    10000.0        841.00        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    364.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.286        .17281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    29.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    107.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    83.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .73889        .33795E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    30.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     22.036        37.643        .85315E-04   -1.4769    
  19  norm          .10000E-03    1.1654        .42436E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    36.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    9.3836        .12024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.7564        .85237E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.5445        .11091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10013E-03    48.974        .63390E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     13.585        15.489        .10871E-03   -1.4971    
  26  Normalizat    .10000E-01    .14591        .84724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.1150        .15100        .17732E-03   -.88989    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.11372e-11
Minuit parameter uncertainties:
  1  0.00186417
  2  25.8535
  3  3.05494e-07
  4  0.00177196
  5  0.000315129
  6  79.7357
  7  0.000909353
  8  0.0180204
  9  4.55203e-07
  10  0.00113944
  11  0.0005021
  12  6.96096e-07
  13  3.69543e-05
  14  0.000265797
  15  5.31531e-05
  16  5.25372e-07
  17  4.31624e-05
  18  37.6834
  19  2.02007e-07
  20  9.82768e-06
  21  3.48749e-05
  22  7.39291e-06
  23  2.30388e-05
  24  0.00503586
  25  15.4933
  26  9.05722e-07
  27  0.151057
Done.

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

Extracting fit parameters...

4FGL J0710.4+5908
   Spectrum: PowerLaw
266    Prefactor:  1.000e-04  4.552e-07  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.115e+00  1.511e-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:  1.000e-02  9.057e-07  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/143491/likelihoodResults_553996801_554256001_4FGL_J0710.4+5908_daily_bin1214.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) = 1622.06892348
delta logL = -0.000246033526992

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1622.06867811
delta logL = -6.64384515403e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8065       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1150       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=   1622.069     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      270 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10080E-03    59.067        .16245E-02** at limit **
   2  Index         1.7509        8.1638        .50000        .19138E-04
   3  Normalizat    .10000E-01    .10050E-02    .84724E-02** at limit **
   4  Prefactor     1.1150        .11749E-01    .17732E-03    .65717E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100798
  Index      = 1.75093
  Normalizat = 0.01
  Prefactor  = 1.11499
 **********
 **   18 **HESSE 
 **********

 FCN=   1622.069     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      299 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10080E-03    265.83        .32490E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7509        7.3768        .50000       -.70734    
   3  Normalizat    .10000E-01    .46693E-02    .16945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1150        .25320E-01    .70928E-05   -.88989    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.18517e-09
Minuit parameter uncertainties:
  1  0.0292554
  2  177.566
  3  1.34629e-08
  4  0.0253199
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/143491': 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) = 1622.06867775
delta logL = -3.05475850837e-07

Extracting fit parameters...

4FGL J0710.4+5908
   Spectrum: PowerLaw
266    Prefactor:  1.008e-04  2.926e-02  1.000e-04  1.000e+04 ( 1.000e-14)
267        Index:  1.751e+00  1.776e+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.115e+00  2.532e-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.346e-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/143491/cmap_HighResolution_553996801_554256001_4FGL_J0710.4+5908_daily_bin1214.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.55e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2021-08-26 20:06:59.089890', job_id='143491', GAL2='1.11', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630033619.09', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='-3.05e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.69' WHERE bin_id='1214' AND source_name='4FGL J0710.4+5908' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 20:06:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 143491: <4FGL_J0710.4+5908_daily_bin1214> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0710.4+5908_daily_bin1214 107.623 59.1352 553996801 554256001 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 :                                   484.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   671 sec.
    Turnaround time :                            674 sec.

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

