/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 6 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 = 7424
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0427.3-3900_daily_bin421
RA = 66.826, Dec = -39.0097
tmin = 348451201, tmax = 348710401
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='462665', job_status='RUN', time_executed='2021-08-20 16:16:12.845437', time_epoch_executed='1629501372.85' WHERE source_name='4FGL J0427.3-3900' and cadence='daily' and bin_id='421'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/462665

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/462665/ft1_4FGL_J0427.3-3900_daily_bin421.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/462665/ft2_4FGL_J0427.3-3900_daily_bin421.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/462665/ft1_4FGL_J0427.3-3900_daily_bin421.fits outfile=/scratch/kocevski/462665/ft1_filteredMKT_4FGL_J0427.3-3900_daily_bin421.fits ra=66.826 dec=-39.0097 rad=12.0 tmin=348451201.0 tmax=348710401.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.13
user 3.23
sys 0.87

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/462665/ft2_4FGL_J0427.3-3900_daily_bin421.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/462665/ft1_filteredMKT_4FGL_J0427.3-3900_daily_bin421.fits evtable="EVENTS" outfile="/scratch/kocevski/462665/ft1_filtered_4FGL_J0427.3-3900_daily_bin421.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.17
user 0.32
sys 0.83

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/462665/ft1_filtered_4FGL_J0427.3-3900_daily_bin421.fits" evtable="EVENTS" scfile=/scratch/kocevski/462665/ft2_4FGL_J0427.3-3900_daily_bin421.fits sctable="SC_DATA" outfile=/scratch/kocevski/462665/ltcube_348451201_348710401_4FGL_J0427.3-3900_daily_bin421.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/462665/ft2_4FGL_J0427.3-3900_daily_bin421.fits
.....................!
real 12.43
user 11.38
sys 1.01

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/462665/ft1_filtered_4FGL_J0427.3-3900_daily_bin421.fits evtable="EVENTS" scfile=/scratch/kocevski/462665/ft2_4FGL_J0427.3-3900_daily_bin421.fits sctable="SC_DATA" expcube=/scratch/kocevski/462665/ltcube_348451201_348710401_4FGL_J0427.3-3900_daily_bin421.fits outfile=/scratch/kocevski/462665/expmap_348451201_348710401_4FGL_J0427.3-3900_daily_bin421.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/462665/ltcube_348451201_348710401_4FGL_J0427.3-3900_daily_bin421.fits
.....................!
real 192.61
user 186.71
sys 5.38

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/462665/ft1_filtered_4FGL_J0427.3-3900_daily_bin421.fits scfile=/scratch/kocevski/462665/ft2_4FGL_J0427.3-3900_daily_bin421.fits outfile=/scratch/kocevski/462665/cmap_348451201_348710401_4FGL_J0427.3-3900_daily_bin421.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.19
user 0.36
sys 0.81

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/462665/ft1_filtered_4FGL_J0427.3-3900_daily_bin421.fits scfile=/scratch/kocevski/462665/ft2_4FGL_J0427.3-3900_daily_bin421.fits outfile=/scratch/kocevski/462665/cmap_HighResolution_348451201_348710401_4FGL_J0427.3-3900_daily_bin421.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.21
user 0.39
sys 0.80

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/462665/ft1_filtered_4FGL_J0427.3-3900_daily_bin421.fits evtable="EVENTS" scfile=/scratch/kocevski/462665/ft2_4FGL_J0427.3-3900_daily_bin421.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/462665/Model_4FGL_J0427.3-3900_daily_bin421.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/462665/ft1_filtered_4FGL_J0427.3-3900_daily_bin421.fits.....................!
real 111.92
user 109.60
sys 1.97

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/462665/ft1_filtered_4FGL_J0427.3-3900_daily_bin421.fits', '/scratch/kocevski/462665/ft2_4FGL_J0427.3-3900_daily_bin421.fits', expMap='/scratch/kocevski/462665/expmap_348451201_348710401_4FGL_J0427.3-3900_daily_bin421.fits', expCube='/scratch/kocevski/462665/ltcube_348451201_348710401_4FGL_J0427.3-3900_daily_bin421.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/462665/Model_4FGL_J0427.3-3900_daily_bin421.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/462665/ft1_filtered_4FGL_J0427.3-3900_daily_bin421.fits
Spacecraft file(s): /scratch/kocevski/462665/ft2_4FGL_J0427.3-3900_daily_bin421.fits
Exposure map: /scratch/kocevski/462665/expmap_348451201_348710401_4FGL_J0427.3-3900_daily_bin421.fits
Exposure cube: /scratch/kocevski/462665/ltcube_348451201_348710401_4FGL_J0427.3-3900_daily_bin421.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/462665/Model_4FGL_J0427.3-3900_daily_bin421.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) = 5167.95742695

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .47455       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.575       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    118.39       1.0000         .10000E-03   10000.    
     6 'norm      '    1.5910       1.0000         .10000E-03   10000.    
     7 'norm      '    17.556       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14878E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.732       1.0000         .10000E-03   10000.    
    11 'norm      '    .19609E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    23.927       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.9402       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.1545       1.0000         .10000E-03   10000.    
    25 'norm      '    12.292       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .98268       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0731       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.

 FCN=   5167.934     FROM MIGRAD    STATUS=CONVERGED    649 CALLS     3775 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.6114        .97665E-07** at limit **
   2  norm          .47482        .96404       -.17006E-06   -.16069E-02
   3  Prefactor     23.591        38.540        .20290E-04    .12641E-05
   4  Prefactor     .10000E-03    13.310       -.22540E-05** at limit **
   5  Prefactor     118.39        117.91       -.47687E-05    .12497E-05
   6  norm          1.5911        .53722        .34069E-07   -.60039E-03
   7  norm          17.555        10.533       -.14532E-06   -.54759E-03
   8  Prefactor     .10000E-03    47.522       -.12279E-04** at limit **
   9  Prefactor     .10000E-03    39.917        .14893E-04** at limit **
  10  Prefactor     13.739        12.999        .20142E-07   -.13685E-03
  11  norm          .18712E-01    .63006       -.27051E-06   -.48537E-03
  12  Prefactor     .10000E-03    1.0663        .36025E-07** at limit **
  13  norm          .10000E-03    2.5416        .16958E-07** at limit **
  14  norm          24.112        468.63        .37149E-03    .38288E-05
  15  norm          .10000E-03    .51820        .25056E-07** at limit **
  16  Prefactor     3.9400        2.5199        .16609E-07   -.39196E-03
  17  Prefactor     .10000E-03    14.859        .41614E-05** at limit **
  18  norm          .10000E-03    4.8951        .15613E-06** at limit **
  19  Prefactor     .10000E-03    17.449       -.39040E-05** at limit **
  20  Prefactor     .10000E-03    4.6815       -.96772E-07** at limit **
  21  Prefactor     .10000E-03    25.649       -.31120E-05** at limit **
  22  Prefactor     .10000E-03    15.888        .22553E-05** at limit **
  23  Prefactor     .10000E-03    .96265        .59462E-07** at limit **
  24  Prefactor     3.1543        4.9064       -.18925E-06   -.52542E-03
  25  norm          12.292        4.1718        .19518E-06   -.10940E-03
  26  Normalizat    .98272        .20555        .27647E-05   -.20712E-03
  27  Prefactor     1.0731        .21084       -.53112E-05    .20086E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.474822
  Prefactor  = 23.5906
  Prefactor  = 0.0001
  Prefactor  = 118.386
  norm       = 1.59107
  norm       = 17.555
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.7385
  norm       = 0.0187117
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 24.1116
  norm       = 0.0001
  Prefactor  = 3.93997
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.15427
  norm       = 12.2917
  Normalizat = 0.982723
  Prefactor  = 1.07308
 **********
 **   18 **HESSE 
 **********

 FCN=   5167.934     FROM HESSE     STATUS=OK           488 CALLS     4263 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.7321        .26657E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .47482        .90196        .95881E-03   -1.5570    
   3  Prefactor     23.591        38.541        .82498E-04   -1.4736    
   4  Prefactor     .10000E-03    13.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     118.39        118.02        .18491E-03   -1.3528    
   6  norm          1.5911        .53813        .28255E-04   -1.5456    
   7  norm          17.555        10.544        .47795E-03   -1.4870    
   8  Prefactor     .10000E-03    47.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    41.072        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.739        12.684        .10809E-03   -1.4966    
  11  norm          .18712E-01    3.0910        .97185E-03   -1.5681    
  12  Prefactor     .10000E-03    1.0795        .72416E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.5451        .11192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          24.112        464.79        .40945E-03   -1.4725    
  15  norm          .10000E-03    .52043        .50435E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.9400        2.5095        .85983E-04   -1.5311    
  17  Prefactor     .10000E-03    15.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.0130        .30976E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.8255        .30365E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    25.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    15.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.6454        .13726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.1543        4.8787        .17964E-03   -1.5353    
  25  norm          12.292        4.1570        .77402E-04   -1.5007    
  26  Normalizat    .98272        .24180        .26247E-03   -.93611    
  27  Prefactor     1.0731        .24871        .26993E-03   -.90332    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.51788e-08
Minuit parameter uncertainties:
  1  1.7822e-05
  2  0.90199
  3  38.5822
  4  1.93932e-05
  5  118.251
  6  0.538131
  7  10.5451
  8  0.00011147
  9  0.000105334
  10  12.6868
  11  0.479732
  12  1.67192e-06
  13  2.37405e-06
  14  213.665
  15  1.12397e-06
  16  2.50953
  17  4.29112e-06
  18  7.86191e-06
  19  9.3333e-06
  20  6.74633e-06
  21  1.19866e-05
  22  8.44724e-06
  23  8.23911e-06
  24  4.87933
  25  4.15711
  26  0.242066
  27  0.248979
Done.

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

Extracting fit parameters...

4FGL J0427.3-3900
   Spectrum: PowerLaw
266    Prefactor:  1.374e+01  1.269e+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.073e+00  2.490e-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:  9.827e-01  2.421e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.89
Ra Dec: 66.826 -39.010
Photon Index (Fixed Index): 2.84 +/- 0.00
Photon Flux (Fixed Index): 7.46e-08 +/- 6.88e-08
Energy Flux (Fixed Index): 1.62e-05 +/- 1.50e-05

TS (Fixed Index): 1.89
Ra Dec: 66.826 -39.010
Photon Flux Upper Limit: 1.98e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.57e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/462665/likelihoodResults_348451201_348710401_4FGL_J0427.3-3900_daily_bin421.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) = 5167.54638742
delta logL = 0.387201429908

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5167.54130096
delta logL = 0.392287884122

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.5419       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6529       1.0000          .0000       10.000    
     3 'Normalizat'    .94409       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1023       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5167.541     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      289 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5459        13.753        .64282E-03   -.61210E-04
   2  Index         3.6526        1.3738        .62802E-02    .32425E-03
   3  Normalizat    .94418        .23507        .26701E-03   -.48880E-04
   4  Prefactor     1.1022        .24540        .26677E-03    .29831E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.54593
  Index      = 3.65261
  Normalizat = 0.94418
  Prefactor  = 1.10224
 **********
 **   18 **HESSE 
 **********

 FCN=   5167.541     FROM HESSE     STATUS=OK            27 CALLS      316 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.5459        10.574        .25713E-04   -1.5159    
   2  Index         3.6526        1.0612        .12560E-02   -.27285    
   3  Normalizat    .94418        .23539        .10680E-04   -.94925    
   4  Prefactor     1.1022        .24528        .10671E-04   -.89395    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45707e-11
Minuit parameter uncertainties:
  1  10.5762
  2  1.06994
  3  0.235648
  4  0.245533
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/462665': 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) = 5167.54130078
delta logL = 0.392288066568

Extracting fit parameters...

4FGL J0427.3-3900
   Spectrum: PowerLaw
266    Prefactor:  7.546e+00  1.058e+01  1.000e-04  1.000e+04 ( 1.000e-12)
267        Index:  3.653e+00  1.070e+00  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.102e+00  2.455e-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:  9.442e-01  2.356e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.76
Ra Dec: 66.826 -39.010
Photon Index (Free Index): 3.65 +/- 1.07
Photon Flux (Free Index): 1.06e-07 +/- 7.61e-08
Energy Flux (Free Index): 1.69e-05 +/- 1.22e-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/462665/cmap_HighResolution_348451201_348710401_4FGL_J0427.3-3900_daily_bin421.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.57e-02', comment='SUCCESS', photon_flux='7.46e-08', energy_flux2='1.69e-05', photon_flux_error='6.88e-08', dlogl='3.92e-01', energy_flux='1.62e-05', photon_flux2='1.06e-07', job_status='DONE', time_completed='2021-08-20 16:29:23.751228', photon_index_error2='1.07', photon_index2='3.65', ts='1.89', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.98e-07', energy_flux_error2='1.22e-05', EG='0.98', time_epoch_completed='1629502163.75', return_code='0', job_id='462665', GAL2='1.10', EG2='0.94', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='7.61e-08', ts2='2.76', photon_index='2.84' WHERE bin_id='421' AND source_name='4FGL J0427.3-3900' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:29:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 462665: <4FGL_J0427.3-3900_daily_bin421> in cluster <slac> Done

Job <4FGL_J0427.3-3900_daily_bin421> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 20 16:15:43 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 16:15:45 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:15:45 2021
Terminated at Fri Aug 20 16:29:24 2021
Results reported at Fri Aug 20 16:29:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3-3900_daily_bin421 66.826 -39.0097 348451201 348710401 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 :                                   798.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             316.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            821 sec.

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

