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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1513
RA = 66.8294, Dec = 5.08
tmin = 631497601, tmax = 631756801
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='458964', job_status='RUN', time_executed='2021-08-20 16:06:50.285410', time_epoch_executed='1629500810.29' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1513'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/458964

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/458964/ft1_4FGL_J0427.3+0504_daily_bin1513.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/458964/ft2_4FGL_J0427.3+0504_daily_bin1513.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/458964/ft1_4FGL_J0427.3+0504_daily_bin1513.fits outfile=/scratch/kocevski/458964/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1513.fits ra=66.8294 dec=5.08 rad=12.0 tmin=631497601.0 tmax=631756801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.77
user 2.35
sys 0.41

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/458964/ft2_4FGL_J0427.3+0504_daily_bin1513.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/458964/ft2_4FGL_J0427.3+0504_daily_bin1513.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/458964/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1513.fits evtable="EVENTS" outfile="/scratch/kocevski/458964/ft1_filtered_4FGL_J0427.3+0504_daily_bin1513.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.74
user 0.34
sys 0.39

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/458964/ft1_filtered_4FGL_J0427.3+0504_daily_bin1513.fits" evtable="EVENTS" scfile=/scratch/kocevski/458964/ft2_4FGL_J0427.3+0504_daily_bin1513.fits sctable="SC_DATA" outfile=/scratch/kocevski/458964/ltcube_631497601_631756801_4FGL_J0427.3+0504_daily_bin1513.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/458964/ft2_4FGL_J0427.3+0504_daily_bin1513.fits
.....................!
real 13.37
user 12.74
sys 0.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/458964/ft1_filtered_4FGL_J0427.3+0504_daily_bin1513.fits evtable="EVENTS" scfile=/scratch/kocevski/458964/ft2_4FGL_J0427.3+0504_daily_bin1513.fits sctable="SC_DATA" expcube=/scratch/kocevski/458964/ltcube_631497601_631756801_4FGL_J0427.3+0504_daily_bin1513.fits outfile=/scratch/kocevski/458964/expmap_631497601_631756801_4FGL_J0427.3+0504_daily_bin1513.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/458964/ltcube_631497601_631756801_4FGL_J0427.3+0504_daily_bin1513.fits
.....................!
real 190.43
user 185.57
sys 4.37

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
Added 139 point sources and 0 extended sources

Setting source of interest to:
4FGL J0427.3+0504 @ 66.8294 5.08

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/458964/ft1_filtered_4FGL_J0427.3+0504_daily_bin1513.fits scfile=/scratch/kocevski/458964/ft2_4FGL_J0427.3+0504_daily_bin1513.fits outfile=/scratch/kocevski/458964/cmap_631497601_631756801_4FGL_J0427.3+0504_daily_bin1513.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.8294 yref=5.08 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.79
user 0.37
sys 0.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/458964/ft1_filtered_4FGL_J0427.3+0504_daily_bin1513.fits scfile=/scratch/kocevski/458964/ft2_4FGL_J0427.3+0504_daily_bin1513.fits outfile=/scratch/kocevski/458964/cmap_HighResolution_631497601_631756801_4FGL_J0427.3+0504_daily_bin1513.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.8294 yref=5.08 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.79
user 0.37
sys 0.41

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/458964/ft1_filtered_4FGL_J0427.3+0504_daily_bin1513.fits evtable="EVENTS" scfile=/scratch/kocevski/458964/ft2_4FGL_J0427.3+0504_daily_bin1513.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/458964/Model_4FGL_J0427.3+0504_daily_bin1513.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 GAL_V02
Working on...
/scratch/kocevski/458964/ft1_filtered_4FGL_J0427.3+0504_daily_bin1513.fits....................!
real 68.62
user 66.94
sys 1.51

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/458964/ft1_filtered_4FGL_J0427.3+0504_daily_bin1513.fits', '/scratch/kocevski/458964/ft2_4FGL_J0427.3+0504_daily_bin1513.fits', expMap='/scratch/kocevski/458964/expmap_631497601_631756801_4FGL_J0427.3+0504_daily_bin1513.fits', expCube='/scratch/kocevski/458964/ltcube_631497601_631756801_4FGL_J0427.3+0504_daily_bin1513.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/458964/Model_4FGL_J0427.3+0504_daily_bin1513.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0427.3+0504'

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  8.580e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.863e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
202        Scale:  4.135e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/458964/ft1_filtered_4FGL_J0427.3+0504_daily_bin1513.fits
Spacecraft file(s): /scratch/kocevski/458964/ft2_4FGL_J0427.3+0504_daily_bin1513.fits
Exposure map: /scratch/kocevski/458964/expmap_631497601_631756801_4FGL_J0427.3+0504_daily_bin1513.fits
Exposure cube: /scratch/kocevski/458964/ltcube_631497601_631756801_4FGL_J0427.3+0504_daily_bin1513.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/458964/Model_4FGL_J0427.3+0504_daily_bin1513.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) = 4629.97089045

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    98.712       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.9085       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    73.016       1.0000         .10000E-03   10000.    
     9 'norm      '    2.4643       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.3117       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.6872       1.0000         .10000E-03   10000.    
    14 'Prefactor '    43.645       1.0000         .10000E-03   10000.    
    15 'norm      '    2.8165       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.4267       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.6113       1.0000         .10000E-03   10000.    
    20 'Prefactor '    184.30       1.0000         .10000E-03   10000.    
    21 'norm      '    3.4439       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    10.195       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .16190       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1384       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4610E+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=   4629.936     FROM MIGRAD    STATUS=CONVERGED   1114 CALLS     4209 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     98.681        68.485        .20230E-03    .48891E-05
   2  Prefactor     .10000E-03    51.667        .18142E-02** at limit **
   3  norm          .10000E-03    10.835        .18142E-02** at limit **
   4  Prefactor     .10000E-03    24.520        .18142E-02** at limit **
   5  norm          1.9078        4.0852        .19547E-03   -.55254E-05
   6  Prefactor     .10000E-03    52.690        .18142E-02** at limit **
   7  norm          .10000E-03    8.2936        .18142E-02** at limit **
   8  norm          73.027        48.581        .46984E-04   -.45974E-05
   9  norm          2.4639        1.7756        .71077E-04   -.23512E-04
  10  Prefactor     5.3113        3.3352        .89108E-04    .42102E-05
  11  Prefactor     .10000E-03    23.712        .18142E-02** at limit **
  12  Prefactor     .10000E-03    23.195        .18142E-02** at limit **
  13  Prefactor     8.6839        15.861        .13600E-03   -.43469E-05
  14  Prefactor     43.651        38.741        .60684E-04   -.22481E-05
  15  norm          2.8155        3.6058        .14068E-03   -.25051E-04
  16  Prefactor     .10000E-03    46.887        .18142E-02** at limit **
  17  norm          2.4265        2.9990        .12551E-03   -.22646E-04
  18  Prefactor     .10000E-03    8.3189        .18142E-02** at limit **
  19  norm          1.6095        4.9798        .24678E-03   -.53440E-04
  20  Prefactor     184.31        102.35        .14870E-03   -.52035E-04
  21  norm          3.4422        5.3269        .17871E-03   -.48412E-04
  22  Prefactor     .10000E-03    53.644        .18142E-02** at limit **
  23  norm          .10000E-03    1.8481        .13804E-02** at limit **
  24  norm          10.202        10.766        .12549E-03   -.14341E-03
  25  Prefactor     .10000E-03    3.8556        .13044E-02** at limit **
  26  Normalizat    .16192        .41862        .10271E-01    .28240E-03
  27  Prefactor     1.1384        .12687        .14302E-03   -.92843E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 98.6807
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.90783
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 73.0266
  norm       = 2.4639
  Prefactor  = 5.31131
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.68386
  Prefactor  = 43.651
  norm       = 2.8155
  Prefactor  = 0.0001
  norm       = 2.42648
  Prefactor  = 0.0001
  norm       = 1.60952
  Prefactor  = 184.31
  norm       = 3.44218
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.202
  Prefactor  = 0.0001
  Normalizat = 0.161921
  Prefactor  = 1.13845
 **********
 **   18 **HESSE 
 **********

 FCN=   4629.936     FROM HESSE     STATUS=OK           462 CALLS     4671 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     98.681        68.307        .80922E-05   -1.3718    
   2  Prefactor     .10000E-03    51.694        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    10.835        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    24.521        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.9078        4.0832        .78186E-05   -1.5432    
   6  Prefactor     .10000E-03    52.698        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    8.2940        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          73.027        48.569        .93969E-05   -1.3997    
   9  norm          2.4639        1.7748        .28431E-05   -1.5394    
  10  Prefactor     5.3113        3.3333        .35643E-05   -1.5247    
  11  Prefactor     .10000E-03    23.714        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    23.195        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.6839        15.717        .54399E-05   -1.5119    
  14  Prefactor     43.651        38.728        .24273E-05   -1.4386    
  15  norm          2.8155        3.6042        .56274E-05   -1.5372    
  16  Prefactor     .10000E-03    46.888        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.4265        2.9968        .50202E-05   -1.5396    
  18  Prefactor     .10000E-03    8.3196        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.6095        4.9769        .98710E-05   -1.5454    
  20  Prefactor     184.31        102.08        .29740E-04   -1.2984    
  21  norm          3.4422        5.3016        .71483E-05   -1.5337    
  22  Prefactor     .10000E-03    53.644        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.8500        .27608E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          10.202        10.760        .50197E-05   -1.5069    
  25  Prefactor     .10000E-03    3.8557        .26089E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .16192        .40166        .20541E-02   -1.3235    
  27  Prefactor     1.1384        .12271        .57209E-05   -.88247    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.04014e-11
Minuit parameter uncertainties:
  1  68.3617
  2  0.000265419
  3  9.49077e-07
  4  6.02199e-06
  5  4.08379
  6  2.49366e-05
  7  1.182e-06
  8  48.595
  9  1.77481
  10  3.33341
  11  8.09577e-06
  12  5.6777e-06
  13  15.7245
  14  38.7504
  15  3.60447
  16  7.56099e-06
  17  2.99695
  18  1.10964e-05
  19  4.97821
  20  102.183
  21  5.30229
  22  3.41428e-05
  23  1.38441e-05
  24  10.7616
  25  1.81197e-06
  26  0.409258
  27  0.122738
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  8.096e-06  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.863e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
202        Scale:  4.135e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  1.138e+00  1.227e-01  0.000e+00  1.000e+01 ( 1.000e+00)
459        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
460        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
457   Normalization:  1.619e-01  4.093e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 66.829 5.080
Photon Flux Upper Limit: 2.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.72e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/458964/likelihoodResults_631497601_631756801_4FGL_J0427.3+0504_daily_bin1513.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) = 4629.93597739
delta logL = -0.000200911642423

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4629.93577765
delta logL = -1.16992305266e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9049       1.0000          .0000       10.000    
     3 'Normalizat'    .16196       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1384       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4610E+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=   4629.936     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      300 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    779.49        .18142E-01** at limit **
   2  Index         2.6879        5.0398        .50000       -.96452E-07
   3  Normalizat    .16192        .53764E-01    .10270E-01   -.15835E-04
   4  Prefactor     1.1384        .18392E-01    .14302E-03   -.54052E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.68792
  Normalizat = 0.161919
  Prefactor  = 1.13845
 **********
 **   18 **HESSE 
 **********

 FCN=   4629.936     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      331 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1360.7        .32413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6879        5.6128        .50000       -.48072    
   3  Normalizat    .16192        .73778E-01    .41081E-03   -1.3235    
   4  Prefactor     1.1384        .25253E-01    .57209E-05   -.88247    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.62065e-09
Minuit parameter uncertainties:
  1  0.000851328
  2  2926.17
  3  0.0738224
  4  0.0252533
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/458964': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4629.93577646
delta logL = 2.31275407714e-08

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  8.513e-04  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.688e+00  2.926e+03  0.000e+00  1.000e+01 (-1.000e+00)
202        Scale:  4.135e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  1.138e+00  2.525e-02  0.000e+00  1.000e+01 ( 1.000e+00)
459        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
460        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
457   Normalization:  1.619e-01  7.382e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 66.829 5.080

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/458964/cmap_HighResolution_631497601_631756801_4FGL_J0427.3+0504_daily_bin1513.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.72e-02', job_status='DONE', photon_flux_upper_limit='2.16e-07', time_completed='2021-08-20 16:17:23.818933', job_id='458964', GAL2='1.14', fit_tolerance='1e-08', EG2='0.16', EG='0.16', time_epoch_completed='1629501443.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='2.31e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1513' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:17:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 458964: <4FGL_J0427.3+0504_daily_bin1513> in cluster <slac> Done

Job <4FGL_J0427.3+0504_daily_bin1513> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 16:05:20 2021
Job was executed on host(s) <bullet0299>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 16:05:21 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:05:21 2021
Terminated at Fri Aug 20 16:17:24 2021
Results reported at Fri Aug 20 16:17:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1513 66.8294 5.08 631497601 631756801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0427.3+0504 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   635.00 sec.
    Max Memory :                                 1254 MB
    Average Memory :                             328.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   723 sec.
    Turnaround time :                            724 sec.

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

