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


Performing analysis on: 4FGL_J0710.4+5908_daily_bin1390
RA = 107.623, Dec = 59.1352
tmin = 599616001, tmax = 599875201
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='145016', job_status='RUN', time_executed='2021-08-26 20:03:49.092942', time_epoch_executed='1630033429.09' WHERE source_name='4FGL J0710.4+5908' and cadence='daily' and bin_id='1390'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/145016

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/145016/ft1_4FGL_J0710.4+5908_daily_bin1390.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/145016/ft2_4FGL_J0710.4+5908_daily_bin1390.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/145016/ft1_4FGL_J0710.4+5908_daily_bin1390.fits outfile=/scratch/kocevski/145016/ft1_filteredMKT_4FGL_J0710.4+5908_daily_bin1390.fits ra=107.623 dec=59.1352 rad=12.0 tmin=599616001.0 tmax=599875201.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.76
user 2.35
sys 0.38

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/145016/ft1_filtered_4FGL_J0710.4+5908_daily_bin1390.fits evtable="EVENTS" scfile=/scratch/kocevski/145016/ft2_4FGL_J0710.4+5908_daily_bin1390.fits sctable="SC_DATA" expcube=/scratch/kocevski/145016/ltcube_599616001_599875201_4FGL_J0710.4+5908_daily_bin1390.fits outfile=/scratch/kocevski/145016/expmap_599616001_599875201_4FGL_J0710.4+5908_daily_bin1390.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/145016/ltcube_599616001_599875201_4FGL_J0710.4+5908_daily_bin1390.fits
.....................!
real 191.83
user 186.76
sys 4.70

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/145016/ft1_filtered_4FGL_J0710.4+5908_daily_bin1390.fits scfile=/scratch/kocevski/145016/ft2_4FGL_J0710.4+5908_daily_bin1390.fits outfile=/scratch/kocevski/145016/cmap_599616001_599875201_4FGL_J0710.4+5908_daily_bin1390.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.74
user 0.38
sys 0.35

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/145016/ft1_filtered_4FGL_J0710.4+5908_daily_bin1390.fits scfile=/scratch/kocevski/145016/ft2_4FGL_J0710.4+5908_daily_bin1390.fits outfile=/scratch/kocevski/145016/cmap_HighResolution_599616001_599875201_4FGL_J0710.4+5908_daily_bin1390.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.75
user 0.38
sys 0.36

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     2 'Prefactor '    38.760       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .59664E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12690E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .29387E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    9.9760       1.0000         .10000E-03   10000.    
     8 'norm      '    .10211E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    221.87       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10409E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    78.365       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10536E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    134.96       1.0000         .10000E-03   10000.    
    16 'norm      '    2.8372       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.2357       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.2364       1.0000         .10000E-03   10000.    
    22 'norm      '    6.8450       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .41117       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    18.160       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .45144       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2974       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=   2547.589     FROM MIGRAD    STATUS=CONVERGED    664 CALLS     3408 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        2032.9        .13453E-05** at limit **
   2  Prefactor     38.768        45.075       -.28627E-05   -.29030E-03
   3  Prefactor     .10001E-03    2114.6       -.12206E-04** at limit **
   4  Prefactor     .10002E-03    95.512       -.57466E-05** at limit **
   5  Prefactor     .10001E-03    6213.6       -.51946E-06** at limit **
   6  Prefactor     .10000E-03    56.280        .62259E-06** at limit **
   7  norm          9.9626        81.447        .14950E-04    .18457E-03
   8  norm          .10000E-03    33.859        .37607E-06** at limit **
   9  Prefactor     .10000E-03    16.887        .38546E-07** at limit **
  10  Prefactor     .10000E-03    40.942        .87192E-06** at limit **
  11  Prefactor     221.81        171.43       -.30710E-05   -.38305E-04
  12  Prefactor     .10001E-03    61.301        .39462E-05** at limit **
  13  Prefactor     78.369        104.48        .12891E-05    .39173E-05
  14  Prefactor     .10001E-03    106.24        .47548E-05** at limit **
  15  Prefactor     134.93        146.84       -.17682E-05   -.61661E-04
  16  norm          2.8370        2.7400        .26513E-07   -.88756E-04
  17  Prefactor     .10000E-03    51.062       -.31174E-05** at limit **
  18  Prefactor     .10000E-03    12.773       -.20101E-06** at limit **
  19  norm          2.2346        4.3335        .51960E-05   -.92049E-03
  20  Prefactor     .10000E-03    75.560       -.20118E-05** at limit **
  21  norm          4.2379        9.1218        .18776E-05    .33877E-03
  22  norm          6.8455        4.9748       -.26942E-06   -.95907E-04
  23  Prefactor     .41059        2.0112       -.20829E-06   -.33836E-03
  24  Prefactor     .10000E-03    17.926       -.84043E-07** at limit **
  25  Prefactor     18.161        15.772        .44846E-06    .85699E-04
  26  Normalizat    .45274        .44500       -.11104E-04   -.36145E-04
  27  Prefactor     1.2963        .26204        .12362E-05    .40908E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Prefactor  = 38.7677
  Prefactor  = 0.000100011
  Prefactor  = 0.000100016
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  norm       = 9.96262
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 221.812
  Prefactor  = 0.000100007
  Prefactor  = 78.3692
  Prefactor  = 0.000100012
  Prefactor  = 134.927
  norm       = 2.83703
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 2.23461
  Prefactor  = 0.000100002
  norm       = 4.23795
  norm       = 6.84548
  Prefactor  = 0.410593
  Prefactor  = 0.0001
  Prefactor  = 18.1609
  Normalizat = 0.452737
  Prefactor  = 1.29629
 **********
 **   18 **HESSE 
 **********

 FCN=   2547.589     FROM HESSE     STATUS=OK           472 CALLS     3880 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        2033.0        .18184E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     38.768        45.722        .64380E-04   -1.4462    
   3  Prefactor     .10001E-03    2195.5        .37269E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10002E-03    96.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    6230.0        .19851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    56.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          9.9626        86.737        .12687E-03   -1.5077    
   8  norm          .10000E-03    33.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    40.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     221.81        172.35        .13578E-03   -1.2718    
  12  Prefactor     .10001E-03    61.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     78.369        103.27        .45365E-04   -1.3935    
  14  Prefactor     .10001E-03    106.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     134.93        146.97        .17333E-03   -1.3380    
  16  norm          2.8370        2.7212        .74939E-04   -1.5371    
  17  Prefactor     .10000E-03    51.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.777        .17621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.2346        4.4782        .68870E-03   -1.5409    
  20  Prefactor     .10000E-03    76.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.2379        9.1448        .19577E-03   -1.5296    
  22  norm          6.8455        4.9807        .89354E-04   -1.5185    
  23  Prefactor     .41059        1.8847        .12958E-03   -1.5580    
  24  Prefactor     .10000E-03    17.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     18.161        15.632        .93985E-04   -1.4855    
  26  Normalizat    .45274        .42922        .50362E-03   -1.1466    
  27  Prefactor     1.2963        .26127        .19841E-03   -.83417    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3181e-09
Minuit parameter uncertainties:
  1  0.00292586
  2  45.7635
  3  0.0101316
  4  0.00248238
  5  0.00916165
  6  0.000203933
  7  58.9065
  8  9.44909e-05
  9  3.77293e-06
  10  0.000201729
  11  172.746
  12  0.00130106
  13  103.51
  14  0.00222193
  15  147.373
  16  2.7213
  17  0.000960739
  18  2.92801e-05
  19  4.47892
  20  0.000830035
  21  9.14783
  22  4.98098
  23  1.75925
  24  5.23146e-05
  25  15.6358
  26  0.432403
  27  0.261533
Done.

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

Extracting fit parameters...

4FGL J0710.4+5908
   Spectrum: PowerLaw
266    Prefactor:  1.000e-04  3.773e-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:  1.296e+00  2.615e-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.527e-01  4.324e-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: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/145016/likelihoodResults_599616001_599875201_4FGL_J0710.4+5908_daily_bin1390.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) = 2547.58903075
delta logL = -0.000266095245024

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2547.58876503
delta logL = -3.70697762264e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10360E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7740       1.0000          .0000       10.000    
     3 'Normalizat'    .45272       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2963       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=   2547.589     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      230 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1198.2        .90712E-02** at limit **
   2  Index         1.7493        7.0138        .50000        .11357E-04
   3  Normalizat    .45274        .91365E-01    .11360        .71141E-05
   4  Prefactor     1.2963        .59083E-01    .32675E-01    .34196E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.74934
  Normalizat = 0.45274
  Prefactor  = 1.29629
 **********
 **   18 **HESSE 
 **********

 FCN=   2547.589     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      263 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    845.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7493        5.7909        .50000       -.70776    
   3  Normalizat    .45274        .73402E-01    .50361E-03   -1.1466    
   4  Prefactor     1.2963        .47625E-01    .19841E-03   -.83417    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.71969e-08
Minuit parameter uncertainties:
  1  0.00150338
  2  28.1354
  3  0.0734177
  4  0.0476263
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/145016': 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) = 2547.58876483
delta logL = -1.71264218807e-07

Extracting fit parameters...

4FGL J0710.4+5908
   Spectrum: PowerLaw
266    Prefactor:  1.000e-04  1.503e-03  1.000e-04  1.000e+04 ( 1.000e-14)
267        Index:  1.749e+00  2.814e+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.296e+00  4.763e-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:  4.527e-01  7.342e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/145016/cmap_HighResolution_599616001_599875201_4FGL_J0710.4+5908_daily_bin1390.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.33e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-08-26 20:12:38.490606', job_id='145016', GAL2='1.30', fit_tolerance='1e-08', EG2='0.45', EG='0.45', time_epoch_completed='1630033958.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.30', dlogl='-1.71e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.69' WHERE bin_id='1390' AND source_name='4FGL J0710.4+5908' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 20:12:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 145016: <4FGL_J0710.4+5908_daily_bin1390> in cluster <slac> Done

Job <4FGL_J0710.4+5908_daily_bin1390> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Aug 26 20:00:34 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 20:00:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 26 20:00:36 2021
Terminated at Thu Aug 26 20:12:39 2021
Results reported at Thu Aug 26 20:12:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0710.4+5908_daily_bin1390 107.623 59.1352 599616001 599875201 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 :                                   530.08 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             272.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   722 sec.
    Turnaround time :                            725 sec.

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

