/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 4 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 = 7686
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0310.6-5017_daily_bin114
RA = 47.6544, Dec = -50.2901
tmin = 268876801, tmax = 269136001
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='250227', job_status='RUN', time_executed='2021-08-17 19:57:45.494757', time_epoch_executed='1629255465.49' WHERE source_name='4FGL J0310.6-5017' and cadence='daily' and bin_id='114'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250227

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250227/ft1_4FGL_J0310.6-5017_daily_bin114.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250227/ft2_4FGL_J0310.6-5017_daily_bin114.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250227/ft1_4FGL_J0310.6-5017_daily_bin114.fits outfile=/scratch/kocevski/250227/ft1_filteredMKT_4FGL_J0310.6-5017_daily_bin114.fits ra=47.6544 dec=-50.2901 rad=12.0 tmin=268876801.0 tmax=269136001.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.44
user 1.49
sys 0.86

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/250227/ft2_4FGL_J0310.6-5017_daily_bin114.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/250227/ft1_filteredMKT_4FGL_J0310.6-5017_daily_bin114.fits evtable="EVENTS" outfile="/scratch/kocevski/250227/ft1_filtered_4FGL_J0310.6-5017_daily_bin114.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.26
user 0.35
sys 0.84

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250227/ft1_filtered_4FGL_J0310.6-5017_daily_bin114.fits" evtable="EVENTS" scfile=/scratch/kocevski/250227/ft2_4FGL_J0310.6-5017_daily_bin114.fits sctable="SC_DATA" outfile=/scratch/kocevski/250227/ltcube_268876801_269136001_4FGL_J0310.6-5017_daily_bin114.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/250227/ft2_4FGL_J0310.6-5017_daily_bin114.fits
.....................!
real 14.97
user 13.57
sys 1.12

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250227/ft1_filtered_4FGL_J0310.6-5017_daily_bin114.fits evtable="EVENTS" scfile=/scratch/kocevski/250227/ft2_4FGL_J0310.6-5017_daily_bin114.fits sctable="SC_DATA" expcube=/scratch/kocevski/250227/ltcube_268876801_269136001_4FGL_J0310.6-5017_daily_bin114.fits outfile=/scratch/kocevski/250227/expmap_268876801_269136001_4FGL_J0310.6-5017_daily_bin114.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/250227/ltcube_268876801_269136001_4FGL_J0310.6-5017_daily_bin114.fits
.....................!
real 194.24
user 186.14
sys 5.43

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/250227/ft1_filtered_4FGL_J0310.6-5017_daily_bin114.fits scfile=/scratch/kocevski/250227/ft2_4FGL_J0310.6-5017_daily_bin114.fits outfile=/scratch/kocevski/250227/cmap_268876801_269136001_4FGL_J0310.6-5017_daily_bin114.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.24
user 0.40
sys 0.81

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250227/ft1_filtered_4FGL_J0310.6-5017_daily_bin114.fits scfile=/scratch/kocevski/250227/ft2_4FGL_J0310.6-5017_daily_bin114.fits outfile=/scratch/kocevski/250227/cmap_HighResolution_268876801_269136001_4FGL_J0310.6-5017_daily_bin114.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.25
user 0.40
sys 0.83

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/250227/ft1_filtered_4FGL_J0310.6-5017_daily_bin114.fits evtable="EVENTS" scfile=/scratch/kocevski/250227/ft2_4FGL_J0310.6-5017_daily_bin114.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/250227/Model_4FGL_J0310.6-5017_daily_bin114.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/250227/ft1_filtered_4FGL_J0310.6-5017_daily_bin114.fits.....................!
real 101.54
user 97.94
sys 2.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/250227/ft1_filtered_4FGL_J0310.6-5017_daily_bin114.fits', '/scratch/kocevski/250227/ft2_4FGL_J0310.6-5017_daily_bin114.fits', expMap='/scratch/kocevski/250227/expmap_268876801_269136001_4FGL_J0310.6-5017_daily_bin114.fits', expCube='/scratch/kocevski/250227/ltcube_268876801_269136001_4FGL_J0310.6-5017_daily_bin114.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/250227/Model_4FGL_J0310.6-5017_daily_bin114.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/250227/ft1_filtered_4FGL_J0310.6-5017_daily_bin114.fits
Spacecraft file(s): /scratch/kocevski/250227/ft2_4FGL_J0310.6-5017_daily_bin114.fits
Exposure map: /scratch/kocevski/250227/expmap_268876801_269136001_4FGL_J0310.6-5017_daily_bin114.fits
Exposure cube: /scratch/kocevski/250227/ltcube_268876801_269136001_4FGL_J0310.6-5017_daily_bin114.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/250227/Model_4FGL_J0310.6-5017_daily_bin114.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) = 4695.36549175

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    125.80       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .72505E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.065       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.3478       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.5880       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.7120       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .71607       1.0000         .10000E-03   10000.    
    15 'norm      '    4.5297       1.0000         .10000E-03   10000.    
    16 'norm      '    .86365       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    55.551       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.2734       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.3455       1.0000         .10000E-03   10000.    
    25 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.4725       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .42796       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=   4695.361     FROM MIGRAD    STATUS=CONVERGED    633 CALLS     3249 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          125.81        79.329       -.94570E-06   -.25330E-04
   2  Prefactor     .10000E-03    3.8876       -.30840E-06** at limit **
   3  norm          .75755E-01    .74141        .10349E-07    .61830E-04
   4  Prefactor     14.039        52.180        .12252E-04    .72031E-04
   5  Prefactor     .10000E-03    10.486       -.50479E-07** at limit **
   6  Prefactor     .10000E-03    22.649       -.54611E-06** at limit **
   7  norm          3.3479        2.2896       -.19015E-06   -.37405E-04
   8  Prefactor     .10000E-03    5.9589        .75208E-06** at limit **
   9  Prefactor     .10000E-03    7.2291       -.89238E-06** at limit **
  10  norm          1.5878        1.2549        .36279E-07    .43863E-04
  11  Prefactor     .10000E-03    20.406       -.13987E-05** at limit **
  12  Prefactor     3.7158        5.4734        .29800E-05    .13762E-02
  13  Prefactor     .10000E-03    6.6166        .15899E-06** at limit **
  14  Prefactor     .63871        28.350       -.10140E-04    .51597E-03
  15  norm          4.5292        8.5962        .21238E-06    .35976E-04
  16  norm          .86386        .88486        .83627E-08    .11062E-03
  17  Prefactor     .10000E-03    23.786        .65429E-07** at limit **
  18  Prefactor     .10000E-03    3.9806        .42431E-06** at limit **
  19  Prefactor     55.549        51.950        .49740E-06    .16348E-04
  20  Prefactor     .10000E-03    6.5230        .26968E-06** at limit **
  21  Prefactor     .10000E-03    5.0474       -.40960E-06** at limit **
  22  norm          2.2733        1.1536        .41541E-07   -.31028E-04
  23  Prefactor     .10000E-03    13.580        .13581E-05** at limit **
  24  Prefactor     9.3436        13.603        .42375E-06    .17147E-04
  25  norm          .10000E-03    2.4323       -.11082E-07** at limit **
  26  Normalizat    1.4726        .19327       -.36508E-06    .11863E-03
  27  Prefactor     .42786        .19211       -.16405E-05   -.25279E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 125.811
  Prefactor  = 0.0001
  norm       = 0.0757547
  Prefactor  = 14.0393
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.34795
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.58782
  Prefactor  = 0.0001
  Prefactor  = 3.71576
  Prefactor  = 0.0001
  Prefactor  = 0.638707
  norm       = 4.52925
  norm       = 0.863857
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 55.5486
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.27329
  Prefactor  = 0.0001
  Prefactor  = 9.34364
  norm       = 0.0001
  Normalizat = 1.47264
  Prefactor  = 0.427861
 **********
 **   18 **HESSE 
 **********

 FCN=   4695.361     FROM HESSE     STATUS=OK           484 CALLS     3733 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          125.81        79.364        .35889E-04   -1.3460    
   2  Prefactor     .10000E-03    3.9266        .13151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .75755E-01    4.7134        .11237E-02   -1.5653    
   4  Prefactor     14.039        52.615        .10680E-03   -1.4958    
   5  Prefactor     .10000E-03    10.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.3479        2.2864        .81893E-04   -1.5342    
   8  Prefactor     .10000E-03    6.0093        .16343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.2356        .18000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.5878        1.2445        .64915E-04   -1.5456    
  11  Prefactor     .10000E-03    20.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.7158        5.6933        .92879E-03   -1.5322    
  13  Prefactor     .10000E-03    6.6176        .17216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .63871        58.841        .44640E-02   -1.5548    
  15  norm          4.5292        8.5394        .18916E-03   -1.5282    
  16  norm          .86386        .85863        .60673E-04   -1.5522    
  17  Prefactor     .10000E-03    23.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.0021        .13355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     55.549        51.935        .53820E-04   -1.4216    
  20  Prefactor     .10000E-03    6.5286        .17095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.0584        .15032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.2733        1.1514        .50531E-04   -1.5406    
  23  Prefactor     .10000E-03    13.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     9.3436        13.613        .13110E-03   -1.5097    
  25  norm          .10000E-03    2.4450        .10435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.4726        .21922        .19374E-03   -.78550    
  27  Prefactor     .42786        .21496        .34371E-03   -1.1541    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.40234e-09
Minuit parameter uncertainties:
  1  79.4313
  2  2.83914e-06
  3  1.1944
  4  52.79
  5  2.14034e-05
  6  1.52889e-05
  7  2.28642
  8  3.10799e-05
  9  3.02947e-05
  10  1.24456
  11  7.84811e-05
  12  5.69416
  13  7.95713e-06
  14  12.2724
  15  8.54168
  16  0.858646
  17  6.08892e-05
  18  2.43053e-05
  19  51.9769
  20  1.50512e-05
  21  6.82546e-06
  22  1.15139
  23  6.51109e-05
  24  13.6175
  25  8.26231e-07
  26  0.21936
  27  0.215362
Done.

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

Extracting fit parameters...

4FGL J0310.6-5017
   Spectrum: PowerLaw
278    Prefactor:  1.000e-04  6.089e-05  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:  4.279e-01  2.154e-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:  1.473e+00  2.194e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/250227/likelihoodResults_268876801_269136001_4FGL_J0310.6-5017_daily_bin114.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) = 4695.36109142
delta logL = -0.000198732289391

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4695.36089525
delta logL = -2.5575136533e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16205E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9469       1.0000          .0000       10.000    
     3 'Normalizat'    1.4726       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .42786       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=   4695.361     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      284 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10296E-03    1.6153        .18142E-01** at limit **
   2  Index         1.8579        7.9584        .50000        .21226E-04
   3  Normalizat    1.4726        .12704E-02    .19374E-03    .23186E-03
   4  Prefactor     .42786        .12881E-02    .34371E-03    .13396E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102956
  Index      = 1.85787
  Normalizat = 1.47264
  Prefactor  = 0.427863
 **********
 **   18 **HESSE 
 **********

 FCN=   4695.361     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      313 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10296E-03    244.19        .61167E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8579        8.9208        .50000       -.67953    
   3  Normalizat    1.4726        .15615E-01    .38747E-04   -.78550    
   4  Prefactor     .42786        .15832E-01    .13748E-04   -1.1541    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.11413e-09
Minuit parameter uncertainties:
  1  0.0539567
  2  236.978
  3  0.0156152
  4  0.0158322
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250227': 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) = 4695.36089299
delta logL = -3.02722583001e-07

Extracting fit parameters...

4FGL J0310.6-5017
   Spectrum: PowerLaw
278    Prefactor:  1.030e-04  5.396e-02  1.000e-04  1.000e+04 ( 1.000e-14)
279        Index:  1.858e+00  2.370e+02  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:  4.279e-01  1.583e-02  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:  1.473e+00  1.562e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 47.654 -50.290

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/250227/cmap_HighResolution_268876801_269136001_4FGL_J0310.6-5017_daily_bin114.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.65e-03', job_status='DONE', photon_flux_upper_limit='4.94e-08', time_completed='2021-08-17 20:10:09.596600', job_id='250227', GAL2='0.43', fit_tolerance='1e-08', EG2='1.47', EG='1.47', time_epoch_completed='1629256209.6', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.43', dlogl='-3.03e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.81' WHERE bin_id='114' AND source_name='4FGL J0310.6-5017' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 20:10:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 250227: <4FGL_J0310.6-5017_daily_bin114> in cluster <slac> Done

Job <4FGL_J0310.6-5017_daily_bin114> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 17 19:56:15 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 19:57: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 19:57:17 2021
Terminated at Tue Aug 17 20:10:10 2021
Results reported at Tue Aug 17 20:10:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0310.6-5017_daily_bin114 47.6544 -50.2901 268876801 269136001 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 :                                   747.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            835 sec.

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

