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


Performing analysis on: 4FGL_J0427.3-3900_daily_bin699
RA = 66.826, Dec = -39.0097
tmin = 420508801, tmax = 420768001
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='465606', job_status='RUN', time_executed='2021-08-20 16:28:32.192947', time_epoch_executed='1629502112.19' WHERE source_name='4FGL J0427.3-3900' and cadence='daily' and bin_id='699'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/465606

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/465606/ft1_4FGL_J0427.3-3900_daily_bin699.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/465606/ft2_4FGL_J0427.3-3900_daily_bin699.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/465606/ft1_4FGL_J0427.3-3900_daily_bin699.fits outfile=/scratch/kocevski/465606/ft1_filteredMKT_4FGL_J0427.3-3900_daily_bin699.fits ra=66.826 dec=-39.0097 rad=12.0 tmin=420508801.0 tmax=420768001.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.54
user 3.17
sys 1.35

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/465606/ft2_4FGL_J0427.3-3900_daily_bin699.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/465606/ft2_4FGL_J0427.3-3900_daily_bin699.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/465606/ft1_filteredMKT_4FGL_J0427.3-3900_daily_bin699.fits evtable="EVENTS" outfile="/scratch/kocevski/465606/ft1_filtered_4FGL_J0427.3-3900_daily_bin699.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.65
user 0.33
sys 1.31

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/465606/ft1_filtered_4FGL_J0427.3-3900_daily_bin699.fits" evtable="EVENTS" scfile=/scratch/kocevski/465606/ft2_4FGL_J0427.3-3900_daily_bin699.fits sctable="SC_DATA" outfile=/scratch/kocevski/465606/ltcube_420508801_420768001_4FGL_J0427.3-3900_daily_bin699.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/465606/ft2_4FGL_J0427.3-3900_daily_bin699.fits
.....................!
real 14.34
user 11.36
sys 1.63

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/465606/ft1_filtered_4FGL_J0427.3-3900_daily_bin699.fits evtable="EVENTS" scfile=/scratch/kocevski/465606/ft2_4FGL_J0427.3-3900_daily_bin699.fits sctable="SC_DATA" expcube=/scratch/kocevski/465606/ltcube_420508801_420768001_4FGL_J0427.3-3900_daily_bin699.fits outfile=/scratch/kocevski/465606/expmap_420508801_420768001_4FGL_J0427.3-3900_daily_bin699.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/465606/ltcube_420508801_420768001_4FGL_J0427.3-3900_daily_bin699.fits
.....................!
real 190.60
user 184.86
sys 5.42

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 180 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 J0427.3-3900 @ 66.826 -39.0097

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/465606/ft1_filtered_4FGL_J0427.3-3900_daily_bin699.fits scfile=/scratch/kocevski/465606/ft2_4FGL_J0427.3-3900_daily_bin699.fits outfile=/scratch/kocevski/465606/cmap_420508801_420768001_4FGL_J0427.3-3900_daily_bin699.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=66.826 yref=-39.0097 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.65
user 0.38
sys 1.26

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/465606/ft1_filtered_4FGL_J0427.3-3900_daily_bin699.fits scfile=/scratch/kocevski/465606/ft2_4FGL_J0427.3-3900_daily_bin699.fits outfile=/scratch/kocevski/465606/cmap_HighResolution_420508801_420768001_4FGL_J0427.3-3900_daily_bin699.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=66.826 yref=-39.0097 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.68
user 0.38
sys 1.29

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/465606/ft1_filtered_4FGL_J0427.3-3900_daily_bin699.fits evtable="EVENTS" scfile=/scratch/kocevski/465606/ft2_4FGL_J0427.3-3900_daily_bin699.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/465606/Model_4FGL_J0427.3-3900_daily_bin699.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/465606/ft1_filtered_4FGL_J0427.3-3900_daily_bin699.fits....................!
real 108.48
user 105.65
sys 2.64

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/465606/ft1_filtered_4FGL_J0427.3-3900_daily_bin699.fits', '/scratch/kocevski/465606/ft2_4FGL_J0427.3-3900_daily_bin699.fits', expMap='/scratch/kocevski/465606/expmap_420508801_420768001_4FGL_J0427.3-3900_daily_bin699.fits', expCube='/scratch/kocevski/465606/ltcube_420508801_420768001_4FGL_J0427.3-3900_daily_bin699.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/465606/Model_4FGL_J0427.3-3900_daily_bin699.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0427.3-3900'

4FGL J0427.3-3900
   Spectrum: PowerLaw
266    Prefactor:  8.184e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
267        Index:  2.844e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
268        Scale:  5.048e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/465606/ft1_filtered_4FGL_J0427.3-3900_daily_bin699.fits
Spacecraft file(s): /scratch/kocevski/465606/ft2_4FGL_J0427.3-3900_daily_bin699.fits
Exposure map: /scratch/kocevski/465606/expmap_420508801_420768001_4FGL_J0427.3-3900_daily_bin699.fits
Exposure cube: /scratch/kocevski/465606/ltcube_420508801_420768001_4FGL_J0427.3-3900_daily_bin699.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/465606/Model_4FGL_J0427.3-3900_daily_bin699.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) = 5026.97314634

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.012       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .42974       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .27977E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.453       1.0000         .10000E-03   10000.    
    10 'Prefactor '    42.830       1.0000         .10000E-03   10000.    
    11 'norm      '    2.8071       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.6697       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.7537       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2955       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    14.568       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.459       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.063       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .96973       1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .81135       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2094       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5026.928     FROM MIGRAD    STATUS=CONVERGED    102 CALLS     2279 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.0949       -.41289E-08** at limit **
   2  norm          .10000E-03    .28639        .18424E-06** at limit **
   3  Prefactor     29.014        1.1299        .63374E-06   -.40703E-03
   4  Prefactor     .10000E-03    24.759        .76804E-05** at limit **
   5  Prefactor     .11062E-03    71.583        .70075E-04** at limit **
   6  norm          .42990        .33903       -.96180E-07    .13508E-03
   7  norm          .10000E-03    2.0607       -.20129E-06** at limit **
   8  Prefactor     .10008E-03    1.2108        .41145E-05** at limit **
   9  Prefactor     15.453        1.0014       -.44027E-07    .25299E-03
  10  Prefactor     42.828        1.2920        .82133E-06    .48763E-03
  11  norm          2.8071        .90395       -.66216E-07    .42021E-03
  12  Prefactor     3.6689        2.8292       -.60344E-07   -.16489E-03
  13  norm          .10000E-03    4.6233       -.19175E-06** at limit **
  14  norm          .10528E-03    55.937       -.49717E-04** at limit **
  15  norm          4.7538        2.3104        .19799E-06    .50952E-03
  16  Prefactor     1.2951        3.0226       -.15552E-05   -.16541E-03
  17  Prefactor     .10000E-03    7.8897       -.35958E-07** at limit **
  18  norm          14.568        1.7888        .24584E-05    .52657E-02
  19  Prefactor     .10449E-03    54.734       -.47310E-04** at limit **
  20  Prefactor     13.458        5.4868       -.98912E-05   -.12476E-01
  21  Prefactor     .10025E-03    14.156       -.23655E-04** at limit **
  22  Prefactor     .10053E-03    23.340        .15981E-04** at limit **
  23  Prefactor     10.063        3.7995       -.13801E-05   -.18076E-02
  24  Prefactor     .96955        3.1821       -.13382E-06   -.19009E-04
  25  norm          .10000E-03    2.3874       -.15385E-06** at limit **
  26  Normalizat    .81109        .25402        .30088E-05    .91547E-04
  27  Prefactor     1.2096        .27464       -.26888E-06    .71467E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 29.0137
  Prefactor  = 0.0001
  Prefactor  = 0.000110619
  norm       = 0.4299
  norm       = 0.0001
  Prefactor  = 0.000100079
  Prefactor  = 15.4534
  Prefactor  = 42.8279
  norm       = 2.80712
  Prefactor  = 3.66887
  norm       = 0.0001
  norm       = 0.000105281
  norm       = 4.75381
  Prefactor  = 1.29506
  Prefactor  = 0.0001
  norm       = 14.5682
  Prefactor  = 0.000104486
  Prefactor  = 13.4584
  Prefactor  = 0.000100249
  Prefactor  = 0.000100526
  Prefactor  = 10.0635
  Prefactor  = 0.969553
  norm       = 0.0001
  Normalizat = 0.811094
  Prefactor  = 1.20956
 **********
 **   18 **HESSE 
 **********

 FCN=   5026.928     FROM HESSE     STATUS=OK           546 CALLS     2825 TOTAL
                     EDM=   .30E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.0909        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .28058        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     29.014        51.754        .18596E-02   -1.4630    
   4  Prefactor     .10000E-03    26.146        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .11062E-03    109.18        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .42990        .35131        .78965E-02   -1.5577    
   7  norm          .10000E-03    2.0577        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10008E-03    157.72        .10709E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.453        14.557        .25472E-02   -1.4922    
  10  Prefactor     42.828        16.455        .15314E-02   -1.4398    
  11  norm          2.8071        .97963        .60699E-02   -1.5373    
  12  Prefactor     3.6689        2.8518        .52713E-02   -1.5325    
  13  norm          .10000E-03    4.6129        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10528E-03    141.30        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.7538        2.3072        .46135E-02   -1.5272    
  16  Prefactor     1.2951        3.1544        .97160E-02   -1.5480    
  17  Prefactor     .10000E-03    7.8811        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          14.568        7.7784        .26234E-02   -1.4944    
  19  Prefactor     .10449E-03    139.59        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.458        8.8980        .27295E-02   -1.4974    
  21  Prefactor     .10025E-03    29.363        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10053E-03    31.745        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     10.063        3.8687        .31578E-02   -1.5073    
  24  Prefactor     .96955        3.2493        .13058E-01   -1.5511    
  25  norm          .10000E-03    2.2865        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .81109        .21528        .66576E-01   -.99658    
  27  Prefactor     1.2096        .22660        .60673E-01   -.86038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96542e-07
Minuit parameter uncertainties:
  1  1.80152e-06
  2  3.29331e-06
  3  51.8345
  4  0.000180658
  5  0.0682234
  6  0.35131
  7  1.90251e-05
  8  0.00706656
  9  14.5599
  10  16.4563
  11  0.979636
  12  2.85189
  13  1.65378e-05
  14  0.0547646
  15  2.30729
  16  3.15482
  17  9.00937e-05
  18  7.77896
  19  0.0501629
  20  8.89888
  21  0.00540803
  22  0.00817533
  23  3.86879
  24  3.24991
  25  2.19934e-05
  26  0.215511
  27  0.22678
Done.

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

Extracting fit parameters...

4FGL J0427.3-3900
   Spectrum: PowerLaw
266    Prefactor:  4.283e+01  1.646e+01  1.000e-04  1.000e+04 ( 1.000e-12)
267        Index:  2.844e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
268        Scale:  5.048e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  1.210e+00  2.268e-01  0.000e+00  1.000e+01 ( 1.000e+00)
582        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
583        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
577   Normalization:  8.111e-01  2.155e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.59
Ra Dec: 66.826 -39.010
Photon Index (Fixed Index): 2.84 +/- 0.00
Photon Flux (Fixed Index): 2.32e-07 +/- 8.92e-08
Energy Flux (Fixed Index): 5.06e-05 +/- 1.94e-05

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) = 5026.7352722
delta logL = 0.19230039901

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5026.73244703
delta logL = 0.195125566328

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    50.522       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6076       1.0000          .0000       10.000    
     3 'Normalizat'    .83326       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1905       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+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=   5026.732     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      302 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     50.525        20.876        .56421E-04   -.52591E-04
   2  Index         2.6075        .36575        .45663E-02    .20537E-03
   3  Normalizat    .83342        .25424        .29108E-03   -.63311E-04
   4  Prefactor     1.1903        .27369        .27004E-03   -.13805E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 50.5248
  Index      = 2.60751
  Normalizat = 0.833421
  Prefactor  = 1.19034
 **********
 **   18 **HESSE 
 **********

 FCN=   5026.732     FROM HESSE     STATUS=OK            25 CALLS      327 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     50.525        20.637        .22569E-05   -1.4285    
   2  Index         2.6075        .36143        .91326E-03   -.49894    
   3  Normalizat    .83342        .25448        .11643E-04   -.98841    
   4  Prefactor     1.1903        .27393        .54008E-04   -.86629    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.12436e-11
Minuit parameter uncertainties:
  1  20.6401
  2  0.361836
  3  0.254848
  4  0.274263
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/465606': 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) = 5026.73244681
delta logL = 0.195125781422

Extracting fit parameters...

4FGL J0427.3-3900
   Spectrum: PowerLaw
266    Prefactor:  5.052e+01  2.064e+01  1.000e-04  1.000e+04 ( 1.000e-12)
267        Index:  2.608e+00  3.618e-01  0.000e+00  1.000e+01 (-1.000e+00)
268        Scale:  5.048e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  1.190e+00  2.743e-01  0.000e+00  1.000e+01 ( 1.000e+00)
582        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
583        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
577   Normalization:  8.334e-01  2.548e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.61
Ra Dec: 66.826 -39.010
Photon Index (Free Index): 2.61 +/- 0.36
Photon Flux (Free Index): 2.14e-07 +/- 8.34e-08
Energy Flux (Free Index): 5.58e-05 +/- 2.21e-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/465606/cmap_HighResolution_420508801_420768001_4FGL_J0427.3-3900_daily_bin699.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.32e-07', energy_flux2='5.58e-05', photon_flux_error='8.92e-08', dlogl='1.95e-01', energy_flux='5.06e-05', photon_flux2='2.14e-07', job_status='DONE', time_completed='2021-08-20 16:39:07.887589', photon_index_error2='0.36', photon_index2='2.61', ts='13.59', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', energy_flux_error2='2.21e-05', EG='0.81', time_epoch_completed='1629502747.89', return_code='0', job_id='465606', GAL2='1.19', EG2='0.83', return_code2='0', energy_flux_error='1.94e-05', photon_flux_error2='8.34e-08', ts2='14.61', photon_index='2.84' WHERE bin_id='699' AND source_name='4FGL J0427.3-3900' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:39:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 465606: <4FGL_J0427.3-3900_daily_bin699> in cluster <slac> Done

Job <4FGL_J0427.3-3900_daily_bin699> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Aug 20 16:25:29 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 16:25:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 16:25:30 2021
Terminated at Fri Aug 20 16:39:11 2021
Results reported at Fri Aug 20 16:39:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3-3900_daily_bin699 66.826 -39.0097 420508801 420768001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0427.3-3900 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   653.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            822 sec.

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

