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


Performing analysis on: 4FGL_J0427.3-3900_daily_bin911
RA = 66.826, Dec = -39.0097
tmin = 475459201, tmax = 475718401
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='466984', job_status='RUN', time_executed='2021-08-20 16:30:46.773532', time_epoch_executed='1629502246.77' WHERE source_name='4FGL J0427.3-3900' and cadence='daily' and bin_id='911'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/466984

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/466984/ft1_4FGL_J0427.3-3900_daily_bin911.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/466984/ft2_4FGL_J0427.3-3900_daily_bin911.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/466984/ft1_4FGL_J0427.3-3900_daily_bin911.fits outfile=/scratch/kocevski/466984/ft1_filteredMKT_4FGL_J0427.3-3900_daily_bin911.fits ra=66.826 dec=-39.0097 rad=12.0 tmin=475459201.0 tmax=475718401.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 3.49
user 3.27
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/466984/ft2_4FGL_J0427.3-3900_daily_bin911.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/466984/ft1_filteredMKT_4FGL_J0427.3-3900_daily_bin911.fits evtable="EVENTS" outfile="/scratch/kocevski/466984/ft1_filtered_4FGL_J0427.3-3900_daily_bin911.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/466984/ft1_filtered_4FGL_J0427.3-3900_daily_bin911.fits" evtable="EVENTS" scfile=/scratch/kocevski/466984/ft2_4FGL_J0427.3-3900_daily_bin911.fits sctable="SC_DATA" outfile=/scratch/kocevski/466984/ltcube_475459201_475718401_4FGL_J0427.3-3900_daily_bin911.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/466984/ft2_4FGL_J0427.3-3900_daily_bin911.fits
.....................!
real 11.98
user 11.62
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/466984/ft1_filtered_4FGL_J0427.3-3900_daily_bin911.fits evtable="EVENTS" scfile=/scratch/kocevski/466984/ft2_4FGL_J0427.3-3900_daily_bin911.fits sctable="SC_DATA" expcube=/scratch/kocevski/466984/ltcube_475459201_475718401_4FGL_J0427.3-3900_daily_bin911.fits outfile=/scratch/kocevski/466984/expmap_475459201_475718401_4FGL_J0427.3-3900_daily_bin911.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/466984/ltcube_475459201_475718401_4FGL_J0427.3-3900_daily_bin911.fits
.....................!
real 190.03
user 185.21
sys 4.36

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/466984/ft1_filtered_4FGL_J0427.3-3900_daily_bin911.fits scfile=/scratch/kocevski/466984/ft2_4FGL_J0427.3-3900_daily_bin911.fits outfile=/scratch/kocevski/466984/cmap_475459201_475718401_4FGL_J0427.3-3900_daily_bin911.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 0.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/466984/ft1_filtered_4FGL_J0427.3-3900_daily_bin911.fits scfile=/scratch/kocevski/466984/ft2_4FGL_J0427.3-3900_daily_bin911.fits outfile=/scratch/kocevski/466984/cmap_HighResolution_475459201_475718401_4FGL_J0427.3-3900_daily_bin911.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 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/466984/ft1_filtered_4FGL_J0427.3-3900_daily_bin911.fits evtable="EVENTS" scfile=/scratch/kocevski/466984/ft2_4FGL_J0427.3-3900_daily_bin911.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/466984/Model_4FGL_J0427.3-3900_daily_bin911.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/466984/ft1_filtered_4FGL_J0427.3-3900_daily_bin911.fits....................!
real 110.28
user 108.70
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2123       1.0000         .10000E-03   10000.    
     2 'norm      '    .27560E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    46.200       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .62285       1.0000         .10000E-03   10000.    
     7 'norm      '    5.7550       1.0000         .10000E-03   10000.    
     8 'Prefactor '    31.786       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11158E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.3680       1.0000         .10000E-03   10000.    
    11 'norm      '    1.3459       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15176E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.8161       1.0000         .10000E-03   10000.    
    14 'norm      '    .10256E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.0103       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11624E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.3800       1.0000         .10000E-03   10000.    
    18 'norm      '    12.137       1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.952       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.269       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    112.91       1.0000         .10000E-03   10000.    
    23 'Prefactor '    28.527       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.8397       1.0000         .10000E-03   10000.    
    25 'norm      '    1.1824       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .93827       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0256       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=   5209.152     FROM MIGRAD    STATUS=CONVERGED    695 CALLS     3377 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2124        3.2686       -.30091E-07   -.10618E-05
   2  norm          .27390E-01    .51520        .51587E-07   -.25001E-03
   3  Prefactor     .10000E-03    27.457        .42062E-07** at limit **
   4  Prefactor     46.195        26.978        .20721E-07    .20060E-04
   5  Prefactor     .10000E-03    111.96        .96821E-06** at limit **
   6  norm          .62281        .47761       -.31470E-07    .49356E-03
   7  norm          5.7528        6.6372       -.12392E-06    .45801E-04
   8  Prefactor     31.788        30.171        .93106E-07    .39541E-04
   9  Prefactor     .10000E-03    85.411       -.23089E-05** at limit **
  10  Prefactor     7.3498        13.916       -.77334E-06    .16378E-03
  11  norm          1.3451        .86403       -.91376E-07    .82357E-03
  12  Prefactor     .10002E-03    1.8811       -.49163E-06** at limit **
  13  norm          3.8203        10.885        .14460E-05    .18775E-03
  14  norm          .10000E-03    256.70       -.95922E-06** at limit **
  15  norm          6.0092        2.5950        .21469E-06    .10333E-02
  16  Prefactor     .10000E-03    2.2360       -.77257E-06** at limit **
  17  Prefactor     8.3842        21.690        .66737E-06    .10806E-03
  18  norm          12.135        8.7809        .29220E-06    .34955E-03
  19  Prefactor     14.952        76.869        .25814E-05    .17296E-04
  20  Prefactor     10.269        8.9350        .22982E-07    .58078E-05
  21  Prefactor     .10000E-03    13.799       -.35583E-07** at limit **
  22  Prefactor     112.91        66.316       -.65027E-07    .13805E-04
  23  Prefactor     28.527        5.7626        .63953E-07    .39430E-03
  24  Prefactor     4.8402        6.4490        .64696E-07   -.12512E-04
  25  norm          1.1827        2.6645        .45720E-06   -.10267E-03
  26  Normalizat    .93823        .23500        .11660E-05    .18763E-03
  27  Prefactor     1.0256        .23626       -.12822E-05    .23248E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.21243
  norm       = 0.0273903
  Prefactor  = 0.0001
  Prefactor  = 46.1955
  Prefactor  = 0.000100002
  norm       = 0.622807
  norm       = 5.75284
  Prefactor  = 31.7883
  Prefactor  = 0.000100002
  Prefactor  = 7.34981
  norm       = 1.34506
  Prefactor  = 0.000100024
  norm       = 3.82034
  norm       = 0.000100002
  norm       = 6.0092
  Prefactor  = 0.000100001
  Prefactor  = 8.38417
  norm       = 12.1354
  Prefactor  = 14.9524
  Prefactor  = 10.2691
  Prefactor  = 0.0001
  Prefactor  = 112.914
  Prefactor  = 28.5267
  Prefactor  = 4.84018
  norm       = 1.18265
  Normalizat = 0.938234
  Prefactor  = 1.02559
 **********
 **   18 **HESSE 
 **********

 FCN=   5209.152     FROM HESSE     STATUS=OK           496 CALLS     3873 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2124        3.2633        .12626E-03   -1.5349    
   2  norm          .27390E-01    3.8148        .98435E-03   -1.5675    
   3  Prefactor     .10000E-03    27.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     46.195        26.936        .58989E-04   -1.4348    
   5  Prefactor     .10000E-03    112.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .62281        .46096        .38909E-04   -1.5550    
   7  norm          5.7528        6.6189        .16743E-03   -1.5228    
   8  Prefactor     31.788        30.193        .71070E-04   -1.4580    
   9  Prefactor     .10000E-03    84.800        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.3498        13.885        .14776E-03   -1.5166    
  11  norm          1.3451        .85897        .45389E-04   -1.5476    
  12  Prefactor     .10002E-03    18.528        .17516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.8203        10.745        .20662E-03   -1.5317    
  14  norm          .10000E-03    257.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.0092        2.5688        .69945E-04   -1.5218    
  16  Prefactor     .10000E-03    7.8776        .18686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.3842        21.548        .13848E-03   -1.5129    
  18  norm          12.135        8.7476        .11499E-03   -1.5011    
  19  Prefactor     14.952        76.808        .51790E-03   -1.4934    
  20  Prefactor     10.269        8.9410        .12504E-03   -1.5067    
  21  Prefactor     .10000E-03    13.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     112.91        66.342        .37858E-04   -1.3579    
  23  Prefactor     28.527        5.7614        .74374E-04   -1.4639    
  24  Prefactor     4.8402        6.3544        .18286E-03   -1.5268    
  25  norm          1.1827        2.5711        .16169E-03   -1.5490    
  26  Normalizat    .93823        .27300        .28634E-03   -.95129    
  27  Prefactor     1.0256        .27547        .29584E-03   -.91881    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05089e-08
Minuit parameter uncertainties:
  1  3.26351
  2  0.645353
  3  7.58592e-06
  4  26.9434
  5  0.000826574
  6  0.460963
  7  6.61976
  8  30.2074
  9  0.000749799
  10  13.8907
  11  0.858983
  12  0.00133766
  13  10.7501
  14  0.00151073
  15  2.56886
  16  0.000166128
  17  21.5681
  18  8.74855
  19  67.9159
  20  8.94213
  21  1.12873e-06
  22  66.3854
  23  5.76156
  24  6.3553
  25  2.57136
  26  0.273404
  27  0.275847
Done.

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

Extracting fit parameters...

4FGL J0427.3-3900
   Spectrum: PowerLaw
266    Prefactor:  7.350e+00  1.389e+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.026e+00  2.758e-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.382e-01  2.734e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/466984/likelihoodResults_475459201_475718401_4FGL_J0427.3-3900_daily_bin911.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) = 5207.43894747
delta logL = 1.71332853595

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5207.06844441
delta logL = 2.08383159744

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .88994E-03   1.0000         .10000E-03   10000.    
     2 'Index     '   10.0000       1.0000          .0000       10.000    
     3 'Normalizat'    .84894       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1018       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=   5207.068     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      509 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .89008E-03    .66818E-03    .14403E-04** at limit **
   2  Index        10.0000        .66572        .50000    ** at limit **
   3  Normalizat    .84902        .25790        .29874E-03   -.15526E-04
   4  Prefactor     1.1017        .27501        .28684E-03    .26555E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000890076
  Index      = 10
  Normalizat = 0.84902
  Prefactor  = 1.10169
 **********
 **   18 **HESSE 
 **********

 FCN=   5207.068     FROM HESSE     STATUS=OK            33 CALLS      542 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .89008E-03    .65601E-03    .57611E-06   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        .64247        .50000        1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .84902        .25833        .11950E-04   -.98275    
   4  Prefactor     1.1017        .27540        .11474E-04   -.89413    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91708e-10
Minuit parameter uncertainties:
  1  0.000656009
  2  0.00050365
  3  0.258701
  4  0.275752
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/466984': 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) = 5207.06844423
delta logL = 2.08383177216

Extracting fit parameters...

4FGL J0427.3-3900
   Spectrum: PowerLaw
266    Prefactor:  8.901e-04  6.560e-04  1.000e-04  1.000e+04 ( 1.000e-12)
267        Index:  1.000e+01  5.037e-04  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.758e-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.490e-01  2.587e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.81
Ra Dec: 66.826 -39.010
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 1.10e-07 +/- 7.84e-08
Energy Flux (Free Index): 1.23e-05 +/- 8.82e-06

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/466984/cmap_HighResolution_475459201_475718401_4FGL_J0427.3-3900_daily_bin911.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.40e-02', comment='SUCCESS', energy_flux2='1.23e-05', dlogl='2.08e+00', photon_flux2='1.10e-07', job_status='DONE', time_completed='2021-08-20 16:43:42.078573', photon_index_error2='0.00', photon_index2='10.00', ts='0.43', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.77e-07', energy_flux_error2='8.82e-06', EG='0.94', time_epoch_completed='1629503022.08', return_code='0', job_id='466984', GAL2='1.10', EG2='0.85', return_code2='0', photon_flux_error2='7.84e-08', ts2='4.81', photon_index='2.84' WHERE bin_id='911' AND source_name='4FGL J0427.3-3900' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:43:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0201>
Subject: Job 466984: <4FGL_J0427.3-3900_daily_bin911> in cluster <slac> Done

Job <4FGL_J0427.3-3900_daily_bin911> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Aug 20 16:30:27 2021
Job was executed on host(s) <bullet0201>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 16:30:29 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:30:29 2021
Terminated at Fri Aug 20 16:43:42 2021
Results reported at Fri Aug 20 16:43:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3-3900_daily_bin911 66.826 -39.0097 475459201 475718401 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 :                                   772.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             353.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            795 sec.

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

