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


Performing analysis on: 4FGL_J0310.6-5017_daily_bin467
RA = 47.6544, Dec = -50.2901
tmin = 360374401, tmax = 360633601
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='256456', job_status='RUN', time_executed='2021-08-17 20:18:08.416073', time_epoch_executed='1629256688.42' WHERE source_name='4FGL J0310.6-5017' and cadence='daily' and bin_id='467'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/256456

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/256456/ft1_4FGL_J0310.6-5017_daily_bin467.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/256456/ft2_4FGL_J0310.6-5017_daily_bin467.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/256456/ft1_4FGL_J0310.6-5017_daily_bin467.fits outfile=/scratch/kocevski/256456/ft1_filteredMKT_4FGL_J0310.6-5017_daily_bin467.fits ra=47.6544 dec=-50.2901 rad=12.0 tmin=360374401.0 tmax=360633601.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 4.16
user 3.15
sys 0.60

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/256456/ft2_4FGL_J0310.6-5017_daily_bin467.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/256456/ft2_4FGL_J0310.6-5017_daily_bin467.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/256456/ft1_filteredMKT_4FGL_J0310.6-5017_daily_bin467.fits evtable="EVENTS" outfile="/scratch/kocevski/256456/ft1_filtered_4FGL_J0310.6-5017_daily_bin467.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.32
user 0.33
sys 0.57

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/256456/ft1_filtered_4FGL_J0310.6-5017_daily_bin467.fits" evtable="EVENTS" scfile=/scratch/kocevski/256456/ft2_4FGL_J0310.6-5017_daily_bin467.fits sctable="SC_DATA" outfile=/scratch/kocevski/256456/ltcube_360374401_360633601_4FGL_J0310.6-5017_daily_bin467.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/256456/ft2_4FGL_J0310.6-5017_daily_bin467.fits
.....................!
real 15.16
user 14.11
sys 0.81

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/256456/ft1_filtered_4FGL_J0310.6-5017_daily_bin467.fits evtable="EVENTS" scfile=/scratch/kocevski/256456/ft2_4FGL_J0310.6-5017_daily_bin467.fits sctable="SC_DATA" expcube=/scratch/kocevski/256456/ltcube_360374401_360633601_4FGL_J0310.6-5017_daily_bin467.fits outfile=/scratch/kocevski/256456/expmap_360374401_360633601_4FGL_J0310.6-5017_daily_bin467.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/256456/ltcube_360374401_360633601_4FGL_J0310.6-5017_daily_bin467.fits
.....................!
real 196.15
user 185.96
sys 4.72

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 Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 189 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 J0310.6-5017 @ 47.6544 -50.2901

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/256456/ft1_filtered_4FGL_J0310.6-5017_daily_bin467.fits scfile=/scratch/kocevski/256456/ft2_4FGL_J0310.6-5017_daily_bin467.fits outfile=/scratch/kocevski/256456/cmap_360374401_360633601_4FGL_J0310.6-5017_daily_bin467.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=47.6544 yref=-50.2901 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.26
user 0.39
sys 0.54

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/256456/ft1_filtered_4FGL_J0310.6-5017_daily_bin467.fits scfile=/scratch/kocevski/256456/ft2_4FGL_J0310.6-5017_daily_bin467.fits outfile=/scratch/kocevski/256456/cmap_HighResolution_360374401_360633601_4FGL_J0310.6-5017_daily_bin467.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=47.6544 yref=-50.2901 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.14
user 0.38
sys 0.55

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/256456/ft1_filtered_4FGL_J0310.6-5017_daily_bin467.fits evtable="EVENTS" scfile=/scratch/kocevski/256456/ft2_4FGL_J0310.6-5017_daily_bin467.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/256456/Model_4FGL_J0310.6-5017_daily_bin467.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/256456/ft1_filtered_4FGL_J0310.6-5017_daily_bin467.fits.....................!
real 130.94
user 124.04
sys 1.81

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/256456/ft1_filtered_4FGL_J0310.6-5017_daily_bin467.fits', '/scratch/kocevski/256456/ft2_4FGL_J0310.6-5017_daily_bin467.fits', expMap='/scratch/kocevski/256456/expmap_360374401_360633601_4FGL_J0310.6-5017_daily_bin467.fits', expCube='/scratch/kocevski/256456/ltcube_360374401_360633601_4FGL_J0310.6-5017_daily_bin467.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/256456/Model_4FGL_J0310.6-5017_daily_bin467.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0310.6-5017'

4FGL J0310.6-5017
   Spectrum: PowerLaw
278    Prefactor:  2.636e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
279        Index:  1.809e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  3.782e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/256456/ft1_filtered_4FGL_J0310.6-5017_daily_bin467.fits
Spacecraft file(s): /scratch/kocevski/256456/ft2_4FGL_J0310.6-5017_daily_bin467.fits
Exposure map: /scratch/kocevski/256456/expmap_360374401_360633601_4FGL_J0310.6-5017_daily_bin467.fits
Exposure cube: /scratch/kocevski/256456/ltcube_360374401_360633601_4FGL_J0310.6-5017_daily_bin467.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/256456/Model_4FGL_J0310.6-5017_daily_bin467.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) = 6029.61687336

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.4981       1.0000         .10000E-03   10000.    
     3 'norm      '    2.4304       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.396       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10255E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .37870       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10866E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.1875       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15463E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    28.551       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.119       1.0000         .10000E-03   10000.    
    15 'norm      '    11.925       1.0000         .10000E-03   10000.    
    16 'norm      '    .11736E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.704       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15494E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11399E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.2524       1.0000         .10000E-03   10000.    
    22 'norm      '    2.7977       1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.449       1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.039       1.0000         .10000E-03   10000.    
    25 'norm      '    3.3364       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .79384       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0839       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6029.609     FROM MIGRAD    STATUS=CONVERGED    654 CALLS     3292 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    18.739       -.34830E-07** at limit **
   2  Prefactor     8.4970        4.5046        .34351E-08    .35661E-04
   3  norm          2.4298        1.2494        .30741E-07   -.67120E-04
   4  Prefactor     18.445        40.984        .93645E-07    .56080E-04
   5  Prefactor     .10000E-03    4.0776       -.47441E-07** at limit **
   6  Prefactor     .10000E-03    5.5447       -.35203E-07** at limit **
   7  norm          .37873        1.4086        .13824E-05    .12112E-03
   8  Prefactor     .10000E-03    13.172        .32932E-07** at limit **
   9  Prefactor     .10000E-03    6.1511       -.14256E-07** at limit **
  10  norm          1.1870        .91259        .10297E-06    .15203E-03
  11  Prefactor     .10000E-03    58.750        .25083E-07** at limit **
  12  Prefactor     .10000E-03    3.0173       -.23912E-06** at limit **
  13  Prefactor     28.533        23.237        .33999E-07   -.28747E-04
  14  Prefactor     20.155        12.744       -.26217E-06    .76282E-04
  15  norm          11.927        8.1768        .25289E-06    .83684E-04
  16  norm          .10000E-03    .51014       -.10739E-06** at limit **
  17  Prefactor     23.739        23.467       -.64997E-06    .10253E-03
  18  Prefactor     .10001E-03    5.3263       -.80002E-06** at limit **
  19  Prefactor     .10000E-03    9.2065       -.22515E-07** at limit **
  20  Prefactor     .10000E-03    33.867        .29999E-06** at limit **
  21  Prefactor     1.2515        10.608        .33573E-05    .53907E-04
  22  norm          2.7976        .95018        .11132E-07   -.15815E-04
  23  Prefactor     14.463        53.262        .86642E-06    .12104E-04
  24  Prefactor     16.029        18.249        .92060E-07    .38430E-05
  25  norm          3.3356        5.0848        .31348E-06    .50116E-04
  26  Normalizat    .79395        .16503       -.61182E-07   -.30041E-04
  27  Prefactor     1.0840        .18093       -.76973E-06   -.61483E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 8.49695
  norm       = 2.42984
  Prefactor  = 18.4445
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.37873
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.18698
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.5326
  Prefactor  = 20.1547
  norm       = 11.9271
  norm       = 0.0001
  Prefactor  = 23.7387
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.25151
  norm       = 2.79757
  Prefactor  = 14.4625
  Prefactor  = 16.0293
  norm       = 3.33564
  Normalizat = 0.793947
  Prefactor  = 1.08402
 **********
 **   18 **HESSE 
 **********

 FCN=   6029.609     FROM HESSE     STATUS=OK           494 CALLS     3786 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    18.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.4970        4.5031        .11509E-03   -1.5125    
   3  norm          2.4298        1.2483        .59195E-04   -1.5396    
   4  Prefactor     18.445        40.783        .93382E-04   -1.4849    
   5  Prefactor     .10000E-03    4.0852        .15312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.5493        .17858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .37873        1.4167        .16894E-03   -1.5585    
   8  Prefactor     .10000E-03    13.487        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.1542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.1870        .89800        .62160E-04   -1.5490    
  11  Prefactor     .10000E-03    58.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.0636        .13146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     28.533        23.221        .74978E-04   -1.4639    
  14  Prefactor     20.155        12.631        .89297E-04   -1.4810    
  15  norm          11.927        7.8953        .11601E-03   -1.5017    
  16  norm          .10000E-03    3.2533        .10236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.739        22.994        .82274E-04   -1.4733    
  18  Prefactor     .10001E-03    11.697        .31971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.2071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    34.729        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.2515        10.694        .39942E-03   -1.5484    
  22  norm          2.7976        .95145        .42835E-04   -1.5373    
  23  Prefactor     14.463        53.220        .10537E-03   -1.4947    
  24  Prefactor     16.029        18.199        .10001E-03   -1.4907    
  25  norm          3.3356        5.0601        .20074E-03   -1.5343    
  26  Normalizat    .79395        .19128        .24368E-03   -1.0029    
  27  Prefactor     1.0840        .20962        .23403E-03   -.89979    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.82328e-10
Minuit parameter uncertainties:
  1  1.91508e-05
  2  4.50326
  3  1.24833
  4  40.8442
  5  1.65378e-06
  6  1.06052e-06
  7  1.41684
  8  4.12305e-05
  9  7.50982e-07
  10  0.898007
  11  8.96575e-05
  12  4.13472e-07
  13  23.2288
  14  12.6331
  15  7.89604
  16  1.25817e-05
  17  23.0028
  18  0.000657469
  19  3.55657e-06
  20  6.10367e-05
  21  7.31809
  22  0.951451
  23  53.3958
  24  18.2057
  25  5.06075
  26  0.191443
  27  0.209775
Done.

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

Extracting fit parameters...

4FGL J0310.6-5017
   Spectrum: PowerLaw
278    Prefactor:  2.374e+01  2.300e+01  1.000e-04  1.000e+04 ( 1.000e-14)
279        Index:  1.809e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  3.782e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  1.084e+00  2.098e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  7.939e-01  1.914e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.09
Ra Dec: 47.654 -50.290
Photon Index (Fixed Index): 1.81 +/- 0.00
Photon Flux (Fixed Index): 2.09e-08 +/- 2.03e-08
Energy Flux (Fixed Index): 2.43e-05 +/- 2.36e-05

TS (Fixed Index): 2.09
Ra Dec: 47.654 -50.290
Photon Flux Upper Limit: 7.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/256456/likelihoodResults_360374401_360633601_4FGL_J0310.6-5017_daily_bin467.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): 0
logL (Free Index) = 6029.59931338
delta logL = 0.00995757087549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6029.59423655
delta logL = 0.0150344038839

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.246       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9026       1.0000          .0000       10.000    
     3 'Normalizat'    .79181       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0845       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+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=   6029.594     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      271 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.238        27.122        .86896E-04    .96684E-04
   2  Index         1.9030        .57584        .66352E-02    .48573E-03
   3  Normalizat    .79130        .18647        .24405E-03    .30340E-03
   4  Prefactor     1.0851        .20711        .23392E-03    .33000E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.2376
  Index      = 1.90301
  Normalizat = 0.791297
  Prefactor  = 1.08513
 **********
 **   18 **HESSE 
 **********

 FCN=   6029.594     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.238        25.791        .34758E-05   -1.4786    
   2  Index         1.9030        .54766        .13270E-02   -.66798    
   3  Normalizat    .79130        .18651        .97619E-05   -1.0039    
   4  Prefactor     1.0851        .20724        .93568E-05   -.89943    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.27193e-10
Minuit parameter uncertainties:
  1  25.8049
  2  0.549448
  3  0.186656
  4  0.207389
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/256456': 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): 0
logL (Free Index) = 6029.59423209
delta logL = 0.0150388561779

Extracting fit parameters...

4FGL J0310.6-5017
   Spectrum: PowerLaw
278    Prefactor:  2.124e+01  2.580e+01  1.000e-04  1.000e+04 ( 1.000e-14)
279        Index:  1.903e+00  5.494e-01  0.000e+00  1.000e+01 (-1.000e+00)
280        Scale:  3.782e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  1.085e+00  2.074e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  7.913e-01  1.867e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.11
Ra Dec: 47.654 -50.290
Photon Index (Free Index): 1.90 +/- 0.55
Photon Flux (Free Index): 2.36e-08 +/- 2.68e-08
Energy Flux (Free Index): 2.10e-05 +/- 2.71e-05

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/256456/cmap_HighResolution_360374401_360633601_4FGL_J0310.6-5017_daily_bin467.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.21e-03', comment='SUCCESS', photon_flux='2.09e-08', energy_flux2='2.10e-05', photon_flux_error='2.03e-08', dlogl='1.50e-02', energy_flux='2.43e-05', photon_flux2='2.36e-08', job_status='DONE', time_completed='2021-08-17 20:33:03.626425', photon_index_error2='0.55', photon_index2='1.90', ts='2.09', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='7.07e-08', energy_flux_error2='2.71e-05', EG='0.79', time_epoch_completed='1629257583.63', return_code='0', job_id='256456', GAL2='1.09', EG2='0.79', return_code2='0', energy_flux_error='2.36e-05', photon_flux_error2='2.68e-08', ts2='2.11', photon_index='1.81' WHERE bin_id='467' AND source_name='4FGL J0310.6-5017' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 20:33:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 256456: <4FGL_J0310.6-5017_daily_bin467> in cluster <slac> Done

Job <4FGL_J0310.6-5017_daily_bin467> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Aug 17 20:16:57 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 20:17:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 17 20:17:17 2021
Terminated at Tue Aug 17 20:33:05 2021
Results reported at Tue Aug 17 20:33:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0310.6-5017_daily_bin467 47.6544 -50.2901 360374401 360633601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0310.6-5017 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   880.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             319.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   947 sec.
    Turnaround time :                            968 sec.

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

