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


Performing analysis on: 4FGL_J0710.8-3851_daily_bin505
RA = 107.725, Dec = -38.8513
tmin = 370224001, tmax = 370483201
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='149774', job_status='RUN', time_executed='2021-08-26 20:19:12.151417', time_epoch_executed='1630034352.15' WHERE source_name='4FGL J0710.8-3851' and cadence='daily' and bin_id='505'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149774

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149774/ft1_4FGL_J0710.8-3851_daily_bin505.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149774/ft2_4FGL_J0710.8-3851_daily_bin505.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149774/ft1_4FGL_J0710.8-3851_daily_bin505.fits outfile=/scratch/kocevski/149774/ft1_filteredMKT_4FGL_J0710.8-3851_daily_bin505.fits ra=107.725 dec=-38.8513 rad=12.0 tmin=370224001.0 tmax=370483201.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 16.24
user 15.75
sys 0.46

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/149774/ft2_4FGL_J0710.8-3851_daily_bin505.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/149774/ft2_4FGL_J0710.8-3851_daily_bin505.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/149774/ft1_filteredMKT_4FGL_J0710.8-3851_daily_bin505.fits evtable="EVENTS" outfile="/scratch/kocevski/149774/ft1_filtered_4FGL_J0710.8-3851_daily_bin505.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/149774/ft1_filtered_4FGL_J0710.8-3851_daily_bin505.fits" evtable="EVENTS" scfile=/scratch/kocevski/149774/ft2_4FGL_J0710.8-3851_daily_bin505.fits sctable="SC_DATA" outfile=/scratch/kocevski/149774/ltcube_370224001_370483201_4FGL_J0710.8-3851_daily_bin505.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/149774/ft2_4FGL_J0710.8-3851_daily_bin505.fits
.....................!
real 10.52
user 10.16
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149774/ft1_filtered_4FGL_J0710.8-3851_daily_bin505.fits evtable="EVENTS" scfile=/scratch/kocevski/149774/ft2_4FGL_J0710.8-3851_daily_bin505.fits sctable="SC_DATA" expcube=/scratch/kocevski/149774/ltcube_370224001_370483201_4FGL_J0710.8-3851_daily_bin505.fits outfile=/scratch/kocevski/149774/expmap_370224001_370483201_4FGL_J0710.8-3851_daily_bin505.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/149774/ltcube_370224001_370483201_4FGL_J0710.8-3851_daily_bin505.fits
.....................!
real 191.23
user 185.78
sys 5.10

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 Puppis A in ROI with RadialDisk spatial model.
Extended source Vela X in ROI with RadialDisk spatial model.
Extended source Vela Junior in ROI with RadialDisk spatial model.
Added 208 point sources and 3 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.8-3851 @ 107.725 -38.8513

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/149774/ft1_filtered_4FGL_J0710.8-3851_daily_bin505.fits scfile=/scratch/kocevski/149774/ft2_4FGL_J0710.8-3851_daily_bin505.fits outfile=/scratch/kocevski/149774/cmap_370224001_370483201_4FGL_J0710.8-3851_daily_bin505.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.725 yref=-38.8513 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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/149774/ft1_filtered_4FGL_J0710.8-3851_daily_bin505.fits scfile=/scratch/kocevski/149774/ft2_4FGL_J0710.8-3851_daily_bin505.fits outfile=/scratch/kocevski/149774/cmap_HighResolution_370224001_370483201_4FGL_J0710.8-3851_daily_bin505.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.725 yref=-38.8513 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.54
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/149774/ft1_filtered_4FGL_J0710.8-3851_daily_bin505.fits evtable="EVENTS" scfile=/scratch/kocevski/149774/ft2_4FGL_J0710.8-3851_daily_bin505.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/149774/Model_4FGL_J0710.8-3851_daily_bin505.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 GAL_V02
adding source Puppis A
adding source Vela Junior
adding source Vela X
Working on...
/scratch/kocevski/149774/ft1_filtered_4FGL_J0710.8-3851_daily_bin505.fits..............!
real 15.67
user 14.34
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/149774/ft1_filtered_4FGL_J0710.8-3851_daily_bin505.fits', '/scratch/kocevski/149774/ft2_4FGL_J0710.8-3851_daily_bin505.fits', expMap='/scratch/kocevski/149774/expmap_370224001_370483201_4FGL_J0710.8-3851_daily_bin505.fits', expCube='/scratch/kocevski/149774/ltcube_370224001_370483201_4FGL_J0710.8-3851_daily_bin505.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/149774/Model_4FGL_J0710.8-3851_daily_bin505.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0710.8-3851'

4FGL J0710.8-3851
   Spectrum: LogParabola
321         norm:  8.741e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
322        alpha:  2.577e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
323         beta:  1.727e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
324           Eb:  1.085e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/149774/ft1_filtered_4FGL_J0710.8-3851_daily_bin505.fits
Spacecraft file(s): /scratch/kocevski/149774/ft2_4FGL_J0710.8-3851_daily_bin505.fits
Exposure map: /scratch/kocevski/149774/expmap_370224001_370483201_4FGL_J0710.8-3851_daily_bin505.fits
Exposure cube: /scratch/kocevski/149774/ltcube_370224001_370483201_4FGL_J0710.8-3851_daily_bin505.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/149774/Model_4FGL_J0710.8-3851_daily_bin505.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 174.961096036

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 174.719716798

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .85006       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.0723       1.0000         .10000E-03   10000.    
     3 'norm      '    5.0428       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.6835       1.0000         .10000E-03   10000.    
     5 'Prefactor '    52.123       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .94274       1.0000         .10000E-03   10000.    
     7 'norm      '    .50427       1.0000         .10000E-03   10000.    
     8 'Prefactor '    43.599       1.0000         .10000E-03   10000.    
     9 'norm      '    1.3502       1.0000         .10000E-03   10000.    
    10 'norm      '    1.0461       1.0000         .10000E-03   10000.    
    11 'norm      '    5.9154       1.0000         .10000E-03   10000.    
    12 'norm      '    6.4439       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .85929E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .27436       1.0000         .10000E-03   10000.    
    15 'norm      '    3.6388       1.0000         .10000E-03   10000.    
    16 'norm      '    3.6847       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.9454       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.9831       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.1260       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.1798       1.0000         .10000E-03   10000.    
    21 'norm      '    7.5193       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    23 'Prefactor '    .82566       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   174.6939     FROM MIGRAD    STATUS=CONVERGED    162 CALLS      305 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10558E-03    1775.2        .12625E-01** at limit **
   2  Prefactor     .13243E-03    7266.2        .71738E-02** at limit **
   3  norm          .31339E-03    456.92        .44766E-02** at limit **
   4  Prefactor     2.6835        1.0185         .0000         .0000    
   5  Prefactor     57.153        1.0469       -.17960E-04   -.10072E-03
   6  Prefactor     .10000E-03    .42001        .14091E-05** at limit **
   7  norm          .10000E-03    .31855        .77542E-06** at limit **
   8  Prefactor     47.426        1.0428       -.25080E-06   -.10528E-01
   9  norm          .10000E-03    .22153        .23312E-05** at limit **
  10  norm          .10000E-03    .36969       -.17964E-04** at limit **
  11  norm          5.9154        1.0036         .0000         .0000    
  12  norm          .12829E-02    .39059E-01   -.33235E-04** at limit **
  13  Prefactor     .10000E-03    .22297        .12001E-04** at limit **
  14  Prefactor     .10000E-03    .26584        .19038E-04** at limit **
  15  norm          3.6388        1.0098         .0000         .0000    
  16  norm          3.6847        1.0095         .0000         .0000    
  17  Prefactor     6.9454        1.0026         .0000         .0000    
  18  Prefactor     .38079E-02    .13533       -.52002E-04    .22935E-02
  19  Prefactor     2.1260        1.0307         .0000         .0000    
  20  Prefactor     16.470        1.6371       -.35939E-03    .56227E-02
  21  norm          .18423E-01    .49492E-01    .50667E-03    .41586E-02
  22  Normalizat    .10000E-01    .25505        .64672E-06** at limit **
  23  Prefactor     .81668        1.1677        .17914E-04   -.52350E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010558
  Prefactor  = 0.000132428
  norm       = 0.000313391
  Prefactor  = 2.68351
  Prefactor  = 57.1528
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 47.4264
  norm       = 0.0001
  norm       = 0.000100002
  norm       = 5.91535
  norm       = 0.00128286
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  norm       = 3.63878
  norm       = 3.68467
  Prefactor  = 6.94536
  Prefactor  = 0.00380792
  Prefactor  = 2.12598
  Prefactor  = 16.4701
  norm       = 0.0184226
  Normalizat = 0.01
  Prefactor  = 0.816681
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   174.6939     FROM HESSE     STATUS=FAILED        15 CALLS      320 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10558E-03    1775.2        .12625E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .13243E-03    7266.2        .71738E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .31339E-03    456.92        .44766E-02   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     558.66        555.88         .0000       -1.5380    
   5  Prefactor     57.153        1.0469       -.17960E-04   -1.4195    
   6  Prefactor     .10000E-03    .42001        .14091E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .31855        .77542E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     47.426        1.0428       -.25080E-06   -1.4330    
   9  norm          .10000E-03    .22153        .23312E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .36969       -.17964E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.9154        1.0036         .0000       -1.5221    
  12  norm          .12829E-02    .39059E-01   -.33235E-04   -1.5715    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .22297        .12001E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .26584        .19038E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.6388        1.0098         .0000       -1.5326    
  16  norm          3.6847        1.0095         .0000       -1.5324    
  17  Prefactor     6.9454        1.0026         .0000       -1.5181    
  18  Prefactor     .38079E-02    .13533       -.52002E-04   -1.5696    
  19  Prefactor     2.1260        1.0307         .0000       -1.5416    
  20  Prefactor     16.470        1.6371       -.35939E-03   -1.4896    
  21  norm          .18423E-01    .49492E-01    .50667E-03   -1.5681    
  22  Normalizat    .10000E-01    .25505        .64672E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .81668        1.1677        .17914E-04   -.99116    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.99256e-10
Minuit parameter uncertainties:
  1  0.205465
  2  0.841233
  3  0.629366
  4  1.01851
  5  1.04693
  6  1.97839e-05
  7  1.70741e-06
  8  1.04284
  9  1.52107e-05
  10  5.40471e-05
  11  1.00362
  12  0.0135942
  13  4.92276e-05
  14  2.90129e-05
  15  1.00977
  16  1.00952
  17  1.00261
  18  0.0448015
  19  1.03074
  20  1.6371
  21  0.0494923
  22  4.18412e-07
  23  1.20635
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 174.693869827

Extracting fit parameters...

4FGL J0710.8-3851
   Spectrum: LogParabola
321         norm:  1.283e-03  1.359e-02  1.000e-04  1.000e+04 ( 1.000e-13)
322        alpha:  2.577e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
323         beta:  1.727e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
324           Eb:  1.085e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
697    Prefactor:  8.167e-01  1.206e+00  0.000e+00  1.000e+01 ( 1.000e+00)
698        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
699        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
696   Normalization:  1.000e-02  4.184e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 107.725 -38.851
Photon Flux Upper Limit: 9.32e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/149774/likelihoodResults_370224001_370483201_4FGL_J0710.8-3851_daily_bin505.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) = 174.693869826
delta logL = 1.02053832052e-09

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 174.693869824
delta logL = 2.10309281101e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12789E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5772       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81668       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   174.6939     FROM MIGRAD    STATUS=FAILED       111 CALLS      252 TOTAL
                     EDM=   .44E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6252.3        .20592E-01** at limit **
   2  alpha         3.1440        2.6737        .16471        .31160E-06
   3  Normalizat    .10000E-01    .85188E-02    .35601E-02** at limit **
   4  Prefactor     .81668        .25786E-01    .11549E-03    .61525E-08
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   174.6939     FROM SIMPLEX   STATUS=UNCHANGED    275 CALLS      527 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6252.3        .38624E-02** at limit **
   2  alpha         3.1440        2.6737        .30178E-10    .31160E-06
   3  Normalizat    .10000E-01    .85188E-02    .25706E-02** at limit **
   4  Prefactor     .81668        .25786E-01    .25535E-14    .61525E-08
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   174.6939     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      558 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12956E-03    7373.1        .28891E-01** at limit **
   2  alpha         2.5968        3.5561        .65882E-01    .16895E-06
   3  Normalizat    .10000E-01    .96256E-02    .35601E-02** at limit **
   4  Prefactor     .81668        .27410E-01    .46195E-05   -.15381E-07
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000129562
  alpha      = 2.59676
  Normalizat = 0.01
  Prefactor  = 0.816682
 **********
 **   18 **HESSE 
 **********

 FCN=   174.6939     FROM HESSE     STATUS=NOT POSDEF    23 CALLS      581 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12956E-03    8991.7        .39440E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5968        3.4008        .13176E-01    .38712E-01
   3  Normalizat    .10000E-01    .74757E-01    .71202E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .81668        .76476E-01    .92391E-06   -.99116    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.13677e-08
Minuit parameter uncertainties:
  1  2.21458
  2  20061.7
  3  2.28051e-12
  4  0.076486
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149774': 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) = 174.69386922
delta logL = 6.06556085359e-07

Extracting fit parameters...

4FGL J0710.8-3851
   Spectrum: LogParabola
321         norm:  1.296e-04  2.215e+00  1.000e-04  1.000e+04 ( 1.000e-13)
322        alpha:  2.597e+00  2.006e+04  0.000e+00  5.000e+00 ( 1.000e+00)
323         beta:  1.727e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
324           Eb:  1.085e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
697    Prefactor:  8.167e-01  7.649e-02  0.000e+00  1.000e+01 ( 1.000e+00)
698        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
699        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
696   Normalization:  1.000e-02  2.281e-12  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 107.725 -38.851

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/149774/cmap_HighResolution_370224001_370483201_4FGL_J0710.8-3851_daily_bin505.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.96e-03', job_status='DONE', photon_flux_upper_limit='9.32e-06', time_completed='2021-08-26 20:25:46.757265', job_id='149774', GAL2='0.82', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630034746.76', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.82', dlogl='6.07e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='505' AND source_name='4FGL J0710.8-3851' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 20:25:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 149774: <4FGL_J0710.8-3851_daily_bin505> in cluster <slac> Done

Job <4FGL_J0710.8-3851_daily_bin505> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Aug 26 20:15:54 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 20:15:55 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:15:55 2021
Terminated at Thu Aug 26 20:25:47 2021
Results reported at Thu Aug 26 20:25:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0710.8-3851_daily_bin505 107.725 -38.8513 370224001 370483201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0710.8-3851 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   391.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             273.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   591 sec.
    Turnaround time :                            593 sec.

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

