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


Performing analysis on: 4FGL_J0427.3-3900_daily_bin931
RA = 66.826, Dec = -39.0097
tmin = 480643201, tmax = 480902401
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='467014', job_status='RUN', time_executed='2021-08-20 16:30:48.832940', time_epoch_executed='1629502248.83' WHERE source_name='4FGL J0427.3-3900' and cadence='daily' and bin_id='931'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/467014

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/467014/ft1_4FGL_J0427.3-3900_daily_bin931.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/467014/ft2_4FGL_J0427.3-3900_daily_bin931.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/467014/ft1_4FGL_J0427.3-3900_daily_bin931.fits outfile=/scratch/kocevski/467014/ft1_filteredMKT_4FGL_J0427.3-3900_daily_bin931.fits ra=66.826 dec=-39.0097 rad=12.0 tmin=480643201.0 tmax=480902401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.16
user 3.39
sys 0.73

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/467014/ft2_4FGL_J0427.3-3900_daily_bin931.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/467014/ft1_filteredMKT_4FGL_J0427.3-3900_daily_bin931.fits evtable="EVENTS" outfile="/scratch/kocevski/467014/ft1_filtered_4FGL_J0427.3-3900_daily_bin931.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.00
user 0.31
sys 0.67

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/467014/ft1_filtered_4FGL_J0427.3-3900_daily_bin931.fits" evtable="EVENTS" scfile=/scratch/kocevski/467014/ft2_4FGL_J0427.3-3900_daily_bin931.fits sctable="SC_DATA" outfile=/scratch/kocevski/467014/ltcube_480643201_480902401_4FGL_J0427.3-3900_daily_bin931.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/467014/ft2_4FGL_J0427.3-3900_daily_bin931.fits
.....................!
real 12.39
user 11.49
sys 0.88

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/467014/ft1_filtered_4FGL_J0427.3-3900_daily_bin931.fits evtable="EVENTS" scfile=/scratch/kocevski/467014/ft2_4FGL_J0427.3-3900_daily_bin931.fits sctable="SC_DATA" expcube=/scratch/kocevski/467014/ltcube_480643201_480902401_4FGL_J0427.3-3900_daily_bin931.fits outfile=/scratch/kocevski/467014/expmap_480643201_480902401_4FGL_J0427.3-3900_daily_bin931.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/467014/ltcube_480643201_480902401_4FGL_J0427.3-3900_daily_bin931.fits
.....................!
real 190.26
user 185.00
sys 4.94

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/467014/ft1_filtered_4FGL_J0427.3-3900_daily_bin931.fits scfile=/scratch/kocevski/467014/ft2_4FGL_J0427.3-3900_daily_bin931.fits outfile=/scratch/kocevski/467014/cmap_480643201_480902401_4FGL_J0427.3-3900_daily_bin931.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.04
user 0.37
sys 0.65

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/467014/ft1_filtered_4FGL_J0427.3-3900_daily_bin931.fits scfile=/scratch/kocevski/467014/ft2_4FGL_J0427.3-3900_daily_bin931.fits outfile=/scratch/kocevski/467014/cmap_HighResolution_480643201_480902401_4FGL_J0427.3-3900_daily_bin931.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.03
user 0.37
sys 0.65

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/467014/ft1_filtered_4FGL_J0427.3-3900_daily_bin931.fits evtable="EVENTS" scfile=/scratch/kocevski/467014/ft2_4FGL_J0427.3-3900_daily_bin931.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/467014/Model_4FGL_J0427.3-3900_daily_bin931.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/467014/ft1_filtered_4FGL_J0427.3-3900_daily_bin931.fits.....................!
real 98.05
user 96.05
sys 1.83

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27590E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .97335       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    46.513       1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.414       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.308       1.0000         .10000E-03   10000.    
    11 'norm      '    .11194E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12570E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10659E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10450E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.4354       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.6701       1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.250       1.0000         .10000E-03   10000.    
    18 'norm      '    .10301E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.1236       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .22124E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10443E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.0125       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.4872       1.0000         .10000E-03   10000.    
    25 'norm      '    2.2970       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1933       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .93353       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=   4563.662     FROM MIGRAD    STATUS=CONVERGED    712 CALLS     3398 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    2.8364        .15166E-05** at limit **
   2  norm          .97315        .87460       -.10058E-07   -.37607E-04
   3  Prefactor     .10000E-03    138.19       -.85979E-05** at limit **
   4  Prefactor     .10000E-03    9.0501       -.17677E-06** at limit **
   5  Prefactor     .10000E-03    100.12       -.62695E-05** at limit **
   6  norm          .10000E-03    .39579       -.22220E-07** at limit **
   7  norm          46.509        14.944       -.30928E-07   -.14101E-03
   8  Prefactor     27.411        44.793       -.26835E-06   -.92795E-04
   9  Prefactor     .10000E-03    8.2812        .15463E-06** at limit **
  10  Prefactor     28.325        17.356       -.62592E-06   -.52119E-03
  11  norm          .10000E-03    .59686        .19947E-06** at limit **
  12  Prefactor     .10000E-03    2.7515        .12461E-05** at limit **
  13  norm          .10001E-03    42.269       -.23272E-05** at limit **
  14  norm          .10000E-03    117.10       -.95649E-05** at limit **
  15  norm          7.4353        2.9719        .10154E-06   -.69699E-03
  16  Prefactor     2.6794        4.6941       -.20520E-05   -.68184E-03
  17  Prefactor     22.252        24.093        .50332E-06   -.25124E-03
  18  norm          .10000E-03    4.2856        .25338E-06** at limit **
  19  Prefactor     .10000E-03    24.526        .47447E-06** at limit **
  20  Prefactor     8.1221        7.3160       -.70989E-06    .76996E-04
  21  Prefactor     .10000E-03    194.28       -.35512E-04** at limit **
  22  Prefactor     .10000E-03    64.465        .93662E-05** at limit **
  23  Prefactor     1.0112        2.9899       -.16372E-05    .31792E-03
  24  Prefactor     5.4867        4.2094        .75649E-07   -.40118E-04
  25  norm          2.2967        2.2760        .87190E-07   -.63577E-04
  26  Normalizat    1.1933        .23549       -.12605E-06   -.36818E-03
  27  Prefactor     .93368        .23281       -.16336E-06   -.23388E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100005
  norm       = 0.973146
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 46.5094
  Prefactor  = 27.4106
  Prefactor  = 0.0001
  Prefactor  = 28.3255
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100006
  norm       = 0.000100002
  norm       = 7.43526
  Prefactor  = 2.67942
  Prefactor  = 22.2522
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.12206
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 1.01116
  Prefactor  = 5.48665
  norm       = 2.29668
  Normalizat = 1.1933
  Prefactor  = 0.933678
 **********
 **   18 **HESSE 
 **********

 FCN=   4563.662     FROM HESSE     STATUS=OK           484 CALLS     3882 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    26.829        .20725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .97315        .86487        .57618E-04   -1.5511    
   3  Prefactor     .10000E-03    138.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.0593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    100.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.6485        .79541E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          46.509        14.739        .29395E-03   -1.4343    
   8  Prefactor     27.411        44.829        .76515E-04   -1.4660    
   9  Prefactor     .10000E-03    8.3001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     28.325        15.017        .75299E-04   -1.4643    
  11  norm          .10000E-03    3.0905        .85988E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.6399        .19937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10001E-03    43.202        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    117.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.4353        2.9693        .63173E-04   -1.5163    
  16  Prefactor     2.6794        4.6024        .15067E-03   -1.5381    
  17  Prefactor     22.252        23.563        .84915E-04   -1.4764    
  18  norm          .10000E-03    4.3023        .13621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    24.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.1221        7.3097        .14067E-03   -1.5138    
  21  Prefactor     .10000E-03    189.63        .68033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    64.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.0112        2.9236        .18825E-03   -1.5507    
  24  Prefactor     5.4867        4.2044        .11732E-03   -1.5239    
  25  norm          2.2967        2.2781        .98118E-04   -1.5405    
  26  Normalizat    1.1933        .28154        .26086E-03   -.86810    
  27  Prefactor     .93368        .27777        .30049E-03   -.94974    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24985e-09
Minuit parameter uncertainties:
  1  0.00075553
  2  0.864877
  3  0.00100536
  4  4.59011e-06
  5  0.00054281
  6  4.63537e-06
  7  14.7399
  8  44.8838
  9  7.45057e-06
  10  15.0193
  11  2.15006e-05
  12  0.000195965
  13  0.000988098
  14  0.00088484
  15  2.96941
  16  4.60298
  17  23.5729
  18  5.06582e-05
  19  1.18418e-06
  20  7.31047
  21  0.000784682
  22  0.000621578
  23  2.924
  24  4.2046
  25  2.27816
  26  0.2819
  27  0.278197
Done.

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

Extracting fit parameters...

4FGL J0427.3-3900
   Spectrum: PowerLaw
266    Prefactor:  2.833e+01  1.502e+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:  9.337e-01  2.782e-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:  1.193e+00  2.819e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.42
Ra Dec: 66.826 -39.010
Photon Index (Fixed Index): 2.84 +/- 0.00
Photon Flux (Fixed Index): 1.54e-07 +/- 8.14e-08
Energy Flux (Fixed Index): 3.34e-05 +/- 1.77e-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) = 4563.2697071
delta logL = 0.391900762179

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4563.26952555
delta logL = 0.392082313278

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.966       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4377       1.0000          .0000       10.000    
     3 'Normalizat'    1.2217       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90586       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.

 FCN=   4563.270     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      274 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.946        92.292        .16479E-02    .45276E-04
   2  Index         2.4377        1.8282        .13998        .92652E-04
   3  Normalizat    1.2217        .23353        .58400E-01   -.81656E-04
   4  Prefactor     .90583        .26163        .68771E-01   -.32967E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.9461
  Index      = 2.43774
  Normalizat = 1.22172
  Prefactor  = 0.905833
 **********
 **   18 **HESSE 
 **********

 FCN=   4563.270     FROM HESSE     STATUS=OK            33 CALLS      307 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.946        19.734        .65918E-04   -1.4492    
   2  Index         2.4377        .42705        .57996E-02   -.53804    
   3  Normalizat    1.2217        .26818        .25827E-03   -.85934    
   4  Prefactor     .90583        .27480        .30423E-03   -.95938    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.25203e-11
Minuit parameter uncertainties:
  1  19.7372
  2  0.427758
  3  0.268484
  4  0.275225
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/467014': 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) = 4563.26952498
delta logL = 0.392082875098

Extracting fit parameters...

4FGL J0427.3-3900
   Spectrum: PowerLaw
266    Prefactor:  3.695e+01  1.974e+01  1.000e-04  1.000e+04 ( 1.000e-12)
267        Index:  2.438e+00  4.278e-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:  9.058e-01  2.752e-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:  1.222e+00  2.685e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.18
Ra Dec: 66.826 -39.010
Photon Index (Free Index): 2.44 +/- 0.43
Photon Flux (Free Index): 1.33e-07 +/- 7.57e-08
Energy Flux (Free Index): 4.16e-05 +/- 2.43e-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/467014/cmap_HighResolution_480643201_480902401_4FGL_J0427.3-3900_daily_bin931.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.54e-07', energy_flux2='4.16e-05', photon_flux_error='8.14e-08', dlogl='3.92e-01', energy_flux='3.34e-05', photon_flux2='1.33e-07', job_status='DONE', time_completed='2021-08-20 16:41:32.002822', photon_index_error2='0.43', photon_index2='2.44', ts='5.42', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='2.43e-05', EG='1.19', time_epoch_completed='1629502892.0', return_code='0', job_id='467014', GAL2='0.91', EG2='1.22', return_code2='0', energy_flux_error='1.77e-05', photon_flux_error2='7.57e-08', ts2='6.18', photon_index='2.84' WHERE bin_id='931' AND source_name='4FGL J0427.3-3900' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:41:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 467014: <4FGL_J0427.3-3900_daily_bin931> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3-3900_daily_bin931 66.826 -39.0097 480643201 480902401 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 :                                   649.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   661 sec.
    Turnaround time :                            662 sec.

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

